artisan是laravel的自带命令行接口,使用时进入框架目录。
1.artisan 查看全部命令
php artisan
或
php artisan list
2.帮助命令--查看命令migrate的帮助信息。
php artisan help migrate
3.创建一个控制器 StudentController
php artisan make:StudentController
4.创建一个模型Student
php artisan make:mode Student
5.创建一个中间件 Activity
php artisan make:middleware Activity