🚀 Run & Basic
php artisan serve
php artisan tinker
php artisan list
php artisan help migrate
🔹 Migrations & Database
php artisan make:migration create_users_table
php artisan migrate
php artisan migrate:rollback
php artisan migrate:refresh
php artisan migrate:fresh
php artisan db:seed
php artisan migrate --seed
🔹 Make Generators
Controller
php artisan make:controller UserController
php artisan make:controller UserController --resource
php artisan make:controller UserController --api
Model
php artisan make:model User
php artisan make:model User -m # with migration
php artisan make:model User -mf # migration + factory
php artisan make:model User -mfs # migration + factory + seeder
Others
php artisan make:middleware CheckRole
php artisan make:request StoreUserRequest
php artisan make:seeder UserSeeder
php artisan make:factory UserFactory
php artisan make:policy UserPolicy
php artisan make:command SendEmails
php artisan make:event UserCreated
php artisan make:listener SendWelcomeEmail
php artisan make:job ProcessPayment🔹 Cache & Optimization
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan event:cache
php artisan optimize
Clear them:
php artisan config:clear
php artisan route:clear
php artisan view:clear
php artisan cache:clear
php artisan optimize:clear
🔹 Auth (Laravel Breeze / Jetstream)
php artisan breeze:install🔹 Install & Update
composer install
composer update
composer update vendor/package🔹 Production Install
🎨 Vite (Frontend Build)
npm install
npm run dev
npm run build
🔥 Real-World Full Reset Command Stack
When your project acts possessed:
php artisan optimize:clear
composer dump-autoload
npm run build
php artisan migrate:fresh --seed