How to Create a Simple Controller, Action and Route with Laravel
php artisan make:controller <Name>Controller
When creating a controller laravel by default stubs actions of RESTful resources.
You can override this behaviour using
php artisan make:controller --plain <Name>Controller
Actions are controller class methods that respond to an application endpoint address.
class NameController extends Controller
//The view file needs to be name/index.php
Setting up a default route to display
This route tells laravel to respond with a
GET request, on the
/ route ie. homepage.
To serve up