Commands.app

Laravel Commands

Laravel Artisan CLI commands for PHP development

71 commands found
laravel new
Create a new Laravel application
Project Setup
laravel new blog
php artisan serve
Start Laravel development server
Development
php artisan serve
php artisan make:controller
Create a new controller class
Code Generation
php artisan make:controller UserController
php artisan make:model
Create a new Eloquent model
Code Generation
php artisan make:model Post
php artisan make:migration
Create a new database migration
Database
php artisan make:migration create_posts_table
php artisan migrate
Run database migrations
Database
php artisan migrate
php artisan migrate:rollback
Rollback the last database migration
Database
php artisan migrate:rollback
php artisan db:seed
Seed the database with records
Database
php artisan db:seed
php artisan tinker
Interact with your application via REPL
Development
php artisan tinker
php artisan route:list
List all registered routes
Development
php artisan route:list
php artisan cache:clear
Clear the application cache
Optimization
php artisan cache:clear
php artisan optimize
Cache configuration and routes for better performance
Optimization
php artisan optimize
php artisan queue:work
Start processing jobs on the queue
Queue
php artisan queue:work
php artisan storage:link
Create symbolic link from public/storage to storage/app/public
Development
php artisan storage:link
php artisan make:middleware
Create a new middleware class
Code Generation
php artisan make:middleware CheckAge
php artisan make:request
Create a new form request class
Code Generation
php artisan make:request StorePostRequest
php artisan make:mail
Create a new email class
Code Generation
php artisan make:mail OrderShipped
php artisan make:notification
Create a new notification class
Code Generation
php artisan make:notification InvoicePaid
php artisan make:job
Create a new job class
Code Generation
php artisan make:job ProcessPodcast
php artisan make:event
Create a new event class
Code Generation
php artisan make:event OrderShipped
php artisan make:listener
Create a new event listener class
Code Generation
php artisan make:listener SendShipmentNotification
php artisan make:observer
Create a new observer class
Code Generation
php artisan make:observer UserObserver
php artisan make:policy
Create a new policy class
Code Generation
php artisan make:policy PostPolicy
php artisan make:seeder
Create a new seeder class
Database
php artisan make:seeder UserSeeder
php artisan make:factory
Create a new model factory
Database
php artisan make:factory PostFactory
php artisan make:resource
Create a new API resource
Code Generation
php artisan make:resource UserResource
php artisan make:test
Create a new test class
Testing
php artisan make:test UserTest
php artisan make:command
Create a new Artisan command
Code Generation
php artisan make:command SendEmails
php artisan make:provider
Create a new service provider class
Code Generation
php artisan make:provider PaymentServiceProvider
php artisan make:rule
Create a new validation rule
Code Generation
php artisan make:rule Uppercase
php artisan make:cast
Create a new custom Eloquent cast class
Code Generation
php artisan make:cast Json
php artisan make:exception
Create a new custom exception class
Code Generation
php artisan make:exception UserNotFoundException
php artisan test
Run the application tests
Testing
php artisan test
php artisan about
Display basic information about your application
Utility
php artisan about
php artisan down
Put the application into maintenance mode
Utility
php artisan down
php artisan up
Bring the application out of maintenance mode
Utility
php artisan up
php artisan inspire
Display an inspiring quote
Utility
php artisan inspire
php artisan migrate:status
Show the status of each migration
Database
php artisan migrate:status
php artisan migrate:fresh
Drop all tables and re-run all migrations
Database
php artisan migrate:fresh
php artisan model:show
Show information about an Eloquent model
Development
php artisan model:show User
php artisan config:show
Display configuration values
Development
php artisan config:show database
php artisan route:cache
Create a route cache file for faster route registration
Optimization
php artisan route:cache
php artisan view:cache
Compile all Blade templates
Optimization
php artisan view:cache
php artisan view:clear
Clear all compiled view files
Optimization
php artisan view:clear
php artisan schedule:list
List all scheduled tasks
Scheduling
php artisan schedule:list
php artisan schedule:run
Run the scheduled commands
Scheduling
php artisan schedule:run
php artisan queue:failed
List all failed queue jobs
Queue
php artisan queue:failed
php artisan queue:retry
Retry a failed queue job
Queue
php artisan queue:retry all
php artisan queue:flush
Flush all failed queue jobs
Queue
php artisan queue:flush
php artisan vendor:publish
Publish any publishable assets from vendor packages
Utility
php artisan vendor:publish
php artisan horizon
Start Laravel Horizon queue worker dashboard
Horizon
php artisan horizon
php artisan horizon:install
Install Laravel Horizon resources
Horizon
php artisan horizon:install
php artisan horizon:terminate
Terminate the Horizon supervisor
Horizon
php artisan horizon:terminate
php artisan horizon:pause
Pause the Horizon supervisor
Horizon
php artisan horizon:pause
php artisan horizon:continue
Resume the Horizon supervisor
Horizon
php artisan horizon:continue
php artisan telescope:install
Install Laravel Telescope debugging assistant
Telescope
php artisan telescope:install
php artisan telescope:prune
Prune stale Telescope entries
Telescope
php artisan telescope:prune
php artisan telescope:clear
Clear all Telescope data
Telescope
php artisan telescope:clear
php artisan pulse:install
Install Laravel Pulse application monitoring
Pulse
php artisan pulse:install
php artisan pulse:check
Check Pulse configuration and status
Pulse
php artisan pulse:check
php artisan pulse:work
Start the Pulse worker
Pulse
php artisan pulse:work
php artisan sail:install
Install Laravel Sail Docker environment
Sail
php artisan sail:install
php artisan sail:publish
Publish Sail Docker files
Sail
php artisan sail:publish
php artisan sanctum:install
Install Laravel Sanctum API authentication
Sanctum
php artisan sanctum:install
php artisan scout:import
Import models into search index
Scout
php artisan scout:import "App\Models\Post"
php artisan scout:flush
Flush all model records from search index
Scout
php artisan scout:flush "App\Models\Post"
php artisan passport:install
Install Laravel Passport OAuth2 server
Passport
php artisan passport:install
php artisan passport:keys
Create encryption keys for Passport
Passport
php artisan passport:keys
php artisan passport:client
Create a new Passport client
Passport
php artisan passport:client
php artisan breeze:install
Install Laravel Breeze authentication scaffolding
Breeze
php artisan breeze:install
Laravel Socialite
OAuth authentication with social providers
Socialite
composer require laravel/socialite