php artisan make:controller
Code GenerationCreate a new controller class
Options & Flags
Available options for this command
--resourceGenerate a resource controller
--apiGenerate an API resource controller
--model=ModelGenerate controller for specific model
Examples
Common usage examples
Create a basic controller
php artisan make:controller UserControllerCreate controller with CRUD methods
php artisan make:controller UserController --resourceCreate API controller
php artisan make:controller API/UserController --apiRelated Commands
You might also find these useful