使用artisan命令創建控制器
默認路徑
php artisan make:controll TestController
創建的控制器會出現在默認路徑app/Http/Controllers下
指定路徑
php artisan make:controller app/Http/Controllers/TestController
創建的控制器會出現在指定路徑app/Http/Controllers/app/Http/下
To view this video please enable JavaScript,and consider upgrading to a web browser that supports HTML5 video
This is a modal window.
Beginning of dialog window.Escape will cancel and close the window.
End of dialog window.