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

Created 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

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.