How to write the model, controller and view foundation of Laravel 5 framework
This article mainly introduces "how to write the model, controller, view foundation of Laravel 5 framework". In daily operation, I believe many people have doubts about how to write the model, controller and view foundation of Laravel 5 framework. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful for you to answer the doubts of "how to write the model, controller and view foundation of Laravel 5 framework". Next, please follow the editor to study!
Add rout
The copy code is as follows:
Route::get ('artiles',' ArticlesController@index')
Create a controller
The copy code is as follows:
Php artisan make:controller ArticlesController-plain
Modify the controller