Php Laravel Artisan Commands.

In this blog, we are going to see the PHP Laravrl Artisan commands. Artisan is the name of the command-line interface included with Laravel. It provides a number of helpful commands for your use while developing your application.Php Laravel Artisan Commands.

Here are some most useful artisan commands of Laravel :

  1. PHP artisan help migrate
  2. PHP artisan cache: clear – This command clears all the cache of the application.
  3. PHP artisan route: clear – This artisan command clears all the route cache.
  4. PHP artisan view: clear – This artisan command clears all the cache of views.
  5. Php artisan make: controller StudentController – This artisan command creates a Controller.
  6. PHP artisan make: controller StudentController –resource – This artisan command creates a Resourceful Controller.
  7. PHP artisan make: migration create_student_table – this artisan command create a Student table
  8. PHP artisan migrate – this artisan command migrate your table
  9. PHP artisan make:migration add_address_column_to_student_table –table=student – this artisan command create a new column in your existing table.
  10. PHP artisan make: model Student – this artisan command creates a model.
  11. PHP artisan make: seeder StudentSeeder – this artisan command creates a seeder.
  12. PHP artisan db:seed – this artisan command insert a new seeder into your table in the database.
  13. PHP artisan make: factory StudentFactory – this artisan command creates a factory.
  14. PHP artisan migrate:fresh – the migrate: fresh command will drop all tables from the database and then execute the migrate command.
  15. PHP artisan serve – this artisan command is used to run your project into your browser.

So, thanks for following this blog, and if you need any help please leave your queries in the comment box we will be happy to help you.

Php Laravel Artisan Commands.expoundsofttechsolution

s