Skip to main content

Laravel controllers

Laravel controllers

A quick setup of Laravel controllers

As we discussed previous articles, Laravel controllers file located at

app\Http\Controllers\YourController.php

To make a controller

To create a controller we usually copy and paste the controller or write the manual code.

But in Laravel you can simple run the artisan command to make a new controller file.

For example here to make the controller

php artisan make:controller YourControllerName

Comments