Home >Backend Development >PHP Tutorial >Display and detailed explanation of friendly error reporting in Laravel 5.5
This article mainly introduces to you the relevant information about the friendly error reporting and display of the new features of Laravel5.5. The introduction in the article is very detailed through pictures and texts, and it has certain reference learning value for everyone's study or work. It is necessary Friends, please follow the editor to learn together.
Preface
The long-awaited laravel5.5 will be presented to you soon. This article will give you a detailed introduction to the new features of Laravel5.5. The related content of the friendly error reporting and display of the feature is shared for everyone’s reference and study. Without further ado, let’s take a look at the detailed introduction:
Get Laravel5.5 Source code
#The Laravel 5.5 official website has not been officially released yet, and it is expected to be in the next few days!
Developers can obtain laravel5.5 source code through the following command:
laravel new laravel55demo --dev
After the installation is completed through the command, you can use
php artisan --version
to view the version
Laravel5.5 friendly error page
After the version is confirmed, we use the command to start 5.5:
php artisan serve
You can see a very beautiful error page
relative to laravel5.0 and later versions
laravel5.1 laravel5.2 laravel5.3 has a more intuitive preview to facilitate our troubleshooting
Of course, if you have used the latest official laravel5.4 If you are doing development, an error page similar to this should be similar
Without further ado, we use the command to generate a key and take a look at the initial page of the project
php artisan key:generate
After generating the key, we use the command to start the project again
Customized error page
us Errors are often encountered during development. It is inevitable that developers often make mistakes when developing code. Being able to quickly locate the error location and solve it quickly is what we care about. I am very happy that laravel5.5 has done it. So here we go You can create an error by opening the editor as follows to create an error
We can see the effect as follows:
Looks like something is wrong!
The above is the detailed content of Display and detailed explanation of friendly error reporting in Laravel 5.5. For more information, please follow other related articles on the PHP Chinese website!