filmov
tv
5.2.30 Laravel Code Update - Important Change
Показать описание
If you are working with Laravel, there is a recent change at or around 5.2.30 where routes no longer need the web middleware to be explicitly defined. In the past we had to make a route group for our web middleware but now with the newest version of Laravel, that is no longer necessary as all routes have the web middleware applied by default.
You can test this by running:
php artisan route:list
The table that comes up has a column on the far right that shows all the middleware applied to your application. Newer Laravel applications will notice that you had web middleware applied even if you dont have it in a route group. This is a big change and if you are unaware of it, you might add it like we used to have to and it can cause lots of problems with your application.
To see the current version of Laravel that you are using, you can simply type:
php artisan --version
Type this command in your project file to get the current version.
--- HOW TO STAY UP TO DATE ON LARAVEL ---
Subscribe to this Channel!
Subscribe to Laravel Subreddit
Watch on GitHub:
--- FOLLOW ME ---
The best way to reach out to me is Twitter:
You can also email:
-----
Tags: Laravel error code update. Routes not working 5.2.31 or 5.2.30. Laravel 5.2 problem. Help fix. Tutorial. How to. Web middleware.
You can test this by running:
php artisan route:list
The table that comes up has a column on the far right that shows all the middleware applied to your application. Newer Laravel applications will notice that you had web middleware applied even if you dont have it in a route group. This is a big change and if you are unaware of it, you might add it like we used to have to and it can cause lots of problems with your application.
To see the current version of Laravel that you are using, you can simply type:
php artisan --version
Type this command in your project file to get the current version.
--- HOW TO STAY UP TO DATE ON LARAVEL ---
Subscribe to this Channel!
Subscribe to Laravel Subreddit
Watch on GitHub:
--- FOLLOW ME ---
The best way to reach out to me is Twitter:
You can also email:
-----
Tags: Laravel error code update. Routes not working 5.2.31 or 5.2.30. Laravel 5.2 problem. Help fix. Tutorial. How to. Web middleware.
Комментарии