The Requests folder in Laravel 5.3 is gone. Where should the customized Request rules be placed?
曾经蜡笔没有小新2017-05-16 16:50:53
0
2
423
There was an AppHttpRequests folder in 5.2 and before, and there was Request.php in it. If you want to customize a StoreArticlesRequest, you can put it in this directory. Now there is no such directory in 5.3. Where should it be placed?
php artisan make:request TestRequest You can view the directory of Request. It is the same as mentioned above. It only excepts the department default directory, but the directory has not changed
5.3 just deletes some infrequently used (or blank) folders
The newly created Request file can still be placed in the
AppHttpRequests
folderphp artisan make:request TestRequest You can view the directory of Request. It is the same as mentioned above. It only excepts the department default directory, but the directory has not changed