Skip to content

Instantly share code, notes, and snippets.

@achingachris
Created February 10, 2023 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save achingachris/d3179e9d1a8792c7326129aac575b740 to your computer and use it in GitHub Desktop.
Save achingachris/d3179e9d1a8792c7326129aac575b740 to your computer and use it in GitHub Desktop.
php artisan commands
Here is a list of some of the most common php artisan commands:
php artisan serve: Starts a development server at http://localhost:8000
php artisan make:controller: Creates a new controller class
php artisan make:model: Creates a new Eloquent model class
php artisan make:migration: Creates a new migration file
php artisan migrate: Runs any pending migrations
php artisan migrate:rollback: Rolls back the last batch of migrations
php artisan make:seeder: Creates a new seeder class
php artisan db:seed: Runs the database seeder and seeds the database with sample data
php artisan make:test: Creates a new test case class
php artisan test: Runs the application tests
php artisan config:cache: Creates a cache file for faster configuration loading
php artisan config:clear: Clears the configuration cache
php artisan route:list: Displays a list of all registered routes
php artisan cache:clear: Clears the application cache
php artisan view:clear: Clears all compiled view files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment