⚡
Laravel Commands
Laravel Artisan CLI commands for PHP development
71 commands found
/ to searchEscto clear
laravel new
Create a new Laravel application
laravel new blogphp artisan serve
Start Laravel development server
php artisan servephp artisan make:controller
Create a new controller class
php artisan make:controller UserControllerphp artisan make:model
Create a new Eloquent model
php artisan make:model Postphp artisan make:migration
Create a new database migration
php artisan make:migration create_posts_tablephp artisan migrate
Run database migrations
php artisan migratephp artisan migrate:rollback
Rollback the last database migration
php artisan migrate:rollbackphp artisan db:seed
Seed the database with records
php artisan db:seedphp artisan tinker
Interact with your application via REPL
php artisan tinkerphp artisan route:list
List all registered routes
php artisan route:listphp artisan cache:clear
Clear the application cache
php artisan cache:clearphp artisan optimize
Cache configuration and routes for better performance
php artisan optimizephp artisan queue:work
Start processing jobs on the queue
php artisan queue:workphp artisan storage:link
Create symbolic link from public/storage to storage/app/public
php artisan storage:linkphp artisan make:middleware
Create a new middleware class
php artisan make:middleware CheckAgephp artisan make:request
Create a new form request class
php artisan make:request StorePostRequestphp artisan make:mail
Create a new email class
php artisan make:mail OrderShippedphp artisan make:notification
Create a new notification class
php artisan make:notification InvoicePaidphp artisan make:job
Create a new job class
php artisan make:job ProcessPodcastphp artisan make:event
Create a new event class
php artisan make:event OrderShippedphp artisan make:listener
Create a new event listener class
php artisan make:listener SendShipmentNotificationphp artisan make:observer
Create a new observer class
php artisan make:observer UserObserverphp artisan make:policy
Create a new policy class
php artisan make:policy PostPolicyphp artisan make:seeder
Create a new seeder class
php artisan make:seeder UserSeederphp artisan make:factory
Create a new model factory
php artisan make:factory PostFactoryphp artisan make:resource
Create a new API resource
php artisan make:resource UserResourcephp artisan make:test
Create a new test class
php artisan make:test UserTestphp artisan make:command
Create a new Artisan command
php artisan make:command SendEmailsphp artisan make:provider
Create a new service provider class
php artisan make:provider PaymentServiceProviderphp artisan make:rule
Create a new validation rule
php artisan make:rule Uppercasephp artisan make:cast
Create a new custom Eloquent cast class
php artisan make:cast Jsonphp artisan make:exception
Create a new custom exception class
php artisan make:exception UserNotFoundExceptionphp artisan test
Run the application tests
php artisan testphp artisan about
Display basic information about your application
php artisan aboutphp artisan down
Put the application into maintenance mode
php artisan downphp artisan up
Bring the application out of maintenance mode
php artisan upphp artisan inspire
Display an inspiring quote
php artisan inspirephp artisan migrate:status
Show the status of each migration
php artisan migrate:statusphp artisan migrate:fresh
Drop all tables and re-run all migrations
php artisan migrate:freshphp artisan model:show
Show information about an Eloquent model
php artisan model:show Userphp artisan config:show
Display configuration values
php artisan config:show databasephp artisan route:cache
Create a route cache file for faster route registration
php artisan route:cachephp artisan view:cache
Compile all Blade templates
php artisan view:cachephp artisan view:clear
Clear all compiled view files
php artisan view:clearphp artisan schedule:list
List all scheduled tasks
php artisan schedule:listphp artisan schedule:run
Run the scheduled commands
php artisan schedule:runphp artisan queue:failed
List all failed queue jobs
php artisan queue:failedphp artisan queue:retry
Retry a failed queue job
php artisan queue:retry allphp artisan queue:flush
Flush all failed queue jobs
php artisan queue:flushphp artisan vendor:publish
Publish any publishable assets from vendor packages
php artisan vendor:publishphp artisan horizon
Start Laravel Horizon queue worker dashboard
php artisan horizonphp artisan horizon:install
Install Laravel Horizon resources
php artisan horizon:installphp artisan horizon:terminate
Terminate the Horizon supervisor
php artisan horizon:terminatephp artisan horizon:pause
Pause the Horizon supervisor
php artisan horizon:pausephp artisan horizon:continue
Resume the Horizon supervisor
php artisan horizon:continuephp artisan telescope:install
Install Laravel Telescope debugging assistant
php artisan telescope:installphp artisan telescope:prune
Prune stale Telescope entries
php artisan telescope:prunephp artisan telescope:clear
Clear all Telescope data
php artisan telescope:clearphp artisan pulse:install
Install Laravel Pulse application monitoring
php artisan pulse:installphp artisan pulse:check
Check Pulse configuration and status
php artisan pulse:checkphp artisan pulse:work
Start the Pulse worker
php artisan pulse:workphp artisan sail:install
Install Laravel Sail Docker environment
php artisan sail:installphp artisan sail:publish
Publish Sail Docker files
php artisan sail:publishphp artisan sanctum:install
Install Laravel Sanctum API authentication
php artisan sanctum:installphp artisan scout:import
Import models into search index
php artisan scout:import "App\Models\Post"php artisan scout:flush
Flush all model records from search index
php artisan scout:flush "App\Models\Post"php artisan passport:install
Install Laravel Passport OAuth2 server
php artisan passport:installphp artisan passport:keys
Create encryption keys for Passport
php artisan passport:keysphp artisan passport:client
Create a new Passport client
php artisan passport:clientphp artisan breeze:install
Install Laravel Breeze authentication scaffolding
php artisan breeze:installLaravel Socialite
OAuth authentication with social providers
composer require laravel/socialite