Artisan هو واجهة سطر الأوامر المدمجة في Laravel. فائدته الأساسية إدارة التطبيق وتسهيل المهام الروتينية بأوامر جاهزة.
أشهر الأوامر
php artisan serve # run a local server
php artisan make:model Post -m # create a model and a migration
php artisan make:controller PostController
php artisan migrate # create or update the tables
php artisan route:list # list all routes
php artisan cache:clear # clear the cache
وأكثر من ذلك
php artisan tinker: تجربة كود PHP مع تطبيقك مباشرة.- يمكنك كتابة أوامر Artisan خاصة بك للمهام المتكررة في مشروعك.
php artisan list # see every available command