【Laravel】 常用的artisan命令【原創】
阿新 • • 發佈:2019-02-02
全域性篇
檢視artisan命令php artisan
php artisan list
php artisan help make:model
php artisan --version
php artisan serve
php artisan key:generate
php artisan make
php artisan down
php artisan up
php artisan tinker
php artisan route:list
生成路由快取以及移除快取路由檔案
php artisan route:cache
- php artisan route:clear
功能篇
建立控制器php artisan make:controller StudentController
php artisan make:controller PhotoController--resource
php artisan make:model Student
php artisan make:migration create_users_table --create=students //建立students表
php artisan make:migration add_votes_to_users_table --table=students//給students表增加votes欄位
php artisan migrate
php artisan make:model Student-m
php artisan migrate:rollback
php artisan migrate:reset
php artisan make:seeder StudentTableSeeder
php artisan db:seed --class=StudentTableSeeder
php artisan db:seed
php artisan make:middleware Activity
php artisan queue:table
php artisan make:job SendEmail
php artisan make:request CreateArticleRequest