Commands.app

php artisan make:controller

Code Generation

Create a new controller class

Options & Flags
Available options for this command
--resource

Generate a resource controller

--api

Generate an API resource controller

--model=Model

Generate controller for specific model

Examples
Common usage examples

Create a basic controller

php artisan make:controller UserController

Create controller with CRUD methods

php artisan make:controller UserController --resource

Create API controller

php artisan make:controller API/UserController --api
Related Commands
You might also find these useful