There are no commands defined in the "route:" namespace

Updated at 13-Oct-2021, By samar

There are no commands defined in the "route:" namespace

In this session, we will try our hand at solving the "There are no commands defined in the "route:" namespace".

This error occurs when you try to get the route list in terminal after running php artisan route::list command in terminal in Laravel. Use php artisan route:list instead of php artisan route::list command.
  • Get all route list in Laravel

    //Move to your project directory and run below command in terminal to get the all route list using php artisan command
    php artisan route:list
    

Back to code snippet queries related laravel