Laravel Command List

Laravel Command List
Photo by Mohammad Rahmani / Unsplash

Ini adalah list command laravel untuk pengingat bagi saya dan rekan sekalian apabila lupa dengan command nya, semoga membantu

Silakkan di copy atau bagikan postingan ini ke media sosial anda

Category Command Description
General Commands php artisan list List all available commands
php artisan help <command> Show help for a specific command
php artisan tinker Open the interactive REPL for your application
php artisan serve Start the Laravel development server
Artisan Migration Commands php artisan migrate Run database migrations
php artisan migrate:rollback Rollback the last database migration
php artisan migrate:reset Rollback all migrations
php artisan migrate:refresh Rollback and re-run all migrations
php artisan migrate:status Show the status of each migration
Artisan Make Commands php artisan make:controller <ControllerName> Create a new controller
php artisan make:model <ModelName> Create a new model
php artisan make:migration <migration_name> Create a new migration
php artisan make:seeder <SeederName> Create a new seeder
php artisan make:factory <FactoryName> Create a new factory
php artisan make:middleware <MiddlewareName> Create a new middleware
php artisan make:command <CommandName> Create a new Artisan command
php artisan make:request <RequestName> Create a new form request validation class
php artisan make:job <JobName> Create a new job class
Artisan Cache Commands php artisan cache:clear Clear the application cache
php artisan cache:forget <cache_key> Remove an item from the cache
php artisan cache:table Create a cache table for caching
Artisan Config Commands php artisan config:clear Clear the configuration cache
php artisan config:cache Cache the configuration files
Artisan Route Commands php artisan route:list List all registered routes
php artisan route:clear Clear the route cache
php artisan route:cache Cache the routes
Artisan View Commands php artisan view:clear Clear the compiled view files
Artisan Key Commands php artisan key:generate Generate the application key
Artisan Queue Commands php artisan queue:work Start processing jobs on the queue
php artisan queue:listen Listen to a queue for jobs
php artisan queue:failed List all failed jobs
php artisan queue:retry <job_id> Retry a failed job
Artisan Database Seeders php artisan db:seed Run the database seeders
php artisan db:seed --class=<SeederName> Run a specific seeder class
Artisan Scheduler Commands php artisan schedule:run Run the scheduled tasks
php artisan schedule:list List all scheduled tasks
Artisan Storage Commands php artisan storage:link Create a symbolic link to the public/storage directory