5,337
edits
No edit summary |
|||
Line 35: | Line 35: | ||
==Controllers== | ==Controllers== | ||
[https://laravel.com/docs/6.x/controllers Documentation]<br> | |||
Controllers handle requests. The route file associates entry points with controller methods.<br> | |||
To make a controller, run <code>php artisan make:controller <name of controller></code>.<br> | |||
Add the <code>-r</code> flag to automatically add REST methods. | |||
==Routing== | ==Routing== |