Laravel: Difference between revisions

315 bytes added ,  27 January 2020
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==