Skip to content

Instantly share code, notes, and snippets.

@hrbullon
Last active June 13, 2019 07:54
Show Gist options
  • Save hrbullon/aaa2f3a5dd66812b56aabde6fdbd9a6d to your computer and use it in GitHub Desktop.
Save hrbullon/aaa2f3a5dd66812b56aabde6fdbd9a6d to your computer and use it in GitHub Desktop.
Laravel Commands

Top commands in Laravel

First, there is a command php artisan list which gives us all the commands, like this:

  • make:auth Scaffold basic login and registration views and routes
  • make:command Create a new Artisan command
  • make:controller Create a new controller class
  • make:event Create a new event class
  • make:job Create a new job class
  • make:listener Create a new event listener class
  • make:mail Create a new email class
  • make:middleware Create a new middleware class
  • make:migration Create a new migration file
  • make:model Create a new Eloquent model class
  • make:notification Create a new notification class
  • make:policy Create a new policy class
  • make:provider Create a new service provider class
  • make:request Create a new form request class
  • make:seeder Create a new seeder class
  • make:test Create a new test class
  • key:generate Generate a new Api Key and set int .env file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment