1 week ago


14. Laravel — Errors

14. Laravel — Errors and Logging Laravel Errors A project while underway, is borne to have a few errors. Errors and exception handling is already configured for you when you start a new Laravel project. Normally, in a local environment we need to see errors for debugging purposes. We need to hide these errors from users in production environment. This can be achieved with the variable APP_DEBUG set in the environment file .env stored at the root of the application. For local environment the value of APP_DEBUG should be true but for production it needs to be set to false to hide errors. Note: After changing the APP_DEBUG variable, restart the Laravel server. Logging Logging is an important mechanism by which system can log errors that are generated. It is useful to improve the reliability of the system. Laravel supports different logging modes like single, daily, syslog, and errorlog modes. You can set these modes in config/app.php file. 'log' => 'daily' You can see the generated log entries in storage/logs/laravel.log file. 78

15. Laravel – Forms Laravel Laravel provides various in built tags to handle HTML forms easily and securely. All the major elements of HTML are generated using Laravel. To support this, we need to add HTML package to Laravel using composer. Example 1 Step 1: Execute the following command to proceed with the same. composer require illuminate/html Step 2: This will add HTML package to Laravel as shown in the following image. 79

Laravel Starter - PHP User Group (Myanmar)
090-056 Exam BrainDumps are Out - Download and Prepare
Download C# Tutorial (PDF Version) - Tutorials Point
IXP Manager Workshop V4 Deep Dive
PHP 5 Recipes: A Problem-Solution Approach
CLAD Exam BrainDumps are Out - Download and Prepare
PHPUnit and Drupal 8 - Bay Area Drupal Camp
WSDL 1.1 Overview
WSDL 1.1 Overview
Boost Test Library
CPA Latest Exam BrainDumps
Real LX0-104 Exam BrainDumps