How do we create a plain controller in Laravel 8.1 ( --plain does not exist in the new version)

Viewed 1074

I can no longer use the following syntax to create a plain controller in laravel 8.1

$php artisan make:Controller UserController --plain

When I execute above command, it fails with:

The `--plain` option does not exist

Many tutorial still uses the above syntax, what is the new method to generate a plain controller.

1 Answers

Before, Laravel 5.2 --plain was used to make a simple controller without builtin routes and methods. Now :

php artisan make:controller UserController

Works the same as --plain.

You can see all possible option by :

php artisan make:Controller --help

See the official documentation of Controllers

Related