أهم أوامر Laravel Artisan
Artisan هي أداة سطر الأوامر الخاصة بـ Laravel. إليك الأوامر التي ستستخدمها أكثر من غيرها أثناء التطوير والنشر.
التطوير
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قاعدة البيانات
php artisan migrate # run migrations
php artisan migrate:rollback
php artisan migrate:fresh --seed
php artisan db:seedالتخزين المؤقت (بيئة الإنتاج)
php artisan config:cache
php artisan route:cache
php artisan view:cache
php artisan optimizeالصيانة
php artisan down # maintenance mode
php artisan up # back online
php artisan queue:work # process queued jobsنفّذ الأمر php artisan list لعرض جميع الأوامر المتاحة.