Must-Use Laravel 20 Artisan Commands: Speed Up Your Development Workflow

Here is must-use Laravel 20 Artisan Commands,

  1. To start the Laravel Server while developing Laravel Application you can use the below command →
    php artisan serve
  2. To check the all route list while developing Laravel Application you can use the below command →
    php artisan route:list
  3. To clear the Configuration Cache you can use the below command
    php artisan config:clear
  4. To clear the route cache you can use the below code
    php artisan route:clear
  5. To clear the compiled views you can use the below command
    php artisan view:clear
  6. To clear the cache events you can use the below command
    php artisan event:clear
  7. To clear the application cache you can use the below command
    php artisan cache:clear
  8. To enable the maintenance mode you can use the below command
    php artisan down
  9. To disable the maintenance mode you can use the below command
    php artisan up
  10. To create the application key you can use the below command
    php artisan key:generate
  11. To create a controller you can use the below command
    php artisan make:controller ArtisanController
  12. For creating Eloquent Model you can use the below command
    php artisan make:model Artisan
  13. For creating a migration table you can use the below command
    php artisan make:migration create_artisan_table
  14. To do the database migration you can use the below command
    php artisan migrate
  15. For Scaffolding Vue Front-end you can use the below code
    php artisan ui vue
  16. For Scaffolding React Vue Front-End you can use the below command
    php artisan ui react
  17. For Scaffolding Bootsatrp Front-End you can use the below command
    php artisan ui bootstrap
  18. To remove the Scaffolding you can use the below command
    php artisan preset none
  19. To Create New Middleware Class you can use the below command
    php artisan make:middleware CheckAge
  20. To create a new email class you can use the below command
    php artisan make:mail NewOrder

Leave a Reply

Your email address will not be published. Required fields are marked *