This article mainly introduces to you about the new characteristics of the Laravel5.5 of the friendly error and display of relevant information, the text through the graphic introduction of very detailed, to everyone's study or work has a certain reference learning value, the need for friends to follow the small series to learn together.
Objective
Long-awaited laravel5.5 will soon be presented for you, this article will give you a detailed introduction about the Laravel5.5 new features of the friendly error and display of relevant content, share out for everyone to refer to the study, words do not say, come together to see the detailed introduction:
Laravel5.5 getting the source code
Now Laravel5.5 official website is not officially released, is expected to be these days of things!
The developer can obtain the laravel5.5 source code through the following command:
laravel new laravel55demo --dev
You can use the command after the installation is complete
php artisan --version
View version
Laravel5.5 Friendly error page
After version determination we use the command to start 5.5:
php artisan serve
You can see a very beautiful error page
The version after the relative laravel5.0
laravel5.1 laravel5.2 laravel5.3 has a more intuitive preview for our troubleshooting
Of course, if you use the current official latest laravel5.4 do development, similar to this error page should be identical
That's nonsense. We use the command to generate a key to see the initial page of the project
php artisan key:generate
After generating the key we use the command to start the project again
Custom error page
We often encountered in the development of error developers in the development of code when often wrong that is unavoidable, can quickly locate the wrong location of the rapid resolution is what we care about, very happy laravel5.5 did so we can create a mistake to open the editor below to create a bug
We can see the effect as follows:
It looks like something's wrong!