مكتبة الشروحات

Essential Laravel Artisan Commands

Artisan is Laravel’s command-line tool. These are the commands you’ll use most during development and deployment.

Development

php artisan serve          # local dev server
php artisan make:controller PostController
php artisan make:model Post -m   # model + migration
php artisan route:list     # list all routes

Database

php artisan migrate        # run migrations
php artisan migrate:rollback
php artisan migrate:fresh --seed
php artisan db:seed

Caching (production)

php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan optimize

Maintenance

php artisan down           # maintenance mode
php artisan up             # back online
php artisan queue:work     # process queued jobs

Run php artisan list to see every available command.

هل كانت المقالة مفيدة ؟

0 أعضاء وجدوا هذه المقالة مفيدة

Powered by WHMCompleteSolution