A command to replace deprecated Route::controller with explicit routes.
A command to replace deprecated
Route::controllers() with explicit routes.
In laravel 5.3 implicit controller routes will be removed from the framework, the functionality will likely be extracted into a separate package, however if you'd like to make the move and start using explicit routes this package will help you.
composer require themsaid/laravel-routes-publisher
Include the following command in your
$commands attribute of
Run the following command:
php artisan themsaid:publishRoutes
After the command is done, two new files will be generated in your
Replace the content of your
routes.php file with that of
routes.php.generated, knowing that if anything went wrong a backup
of your original
routes.php's content will be available in
routes.phpdoesn't contain any PHP syntax errors.
routes.phpfile is located in
app\Http\routes.phpwith the exact name.
routes.phpfiles doesn't include any other file using
- Your Application namespace is correctly registered in the psr-4 section of
I tried hard to cover different syntax and file formatting in this package, however if you found any problems while using the package please open a new issue.