php artisan make:controller MyController
php artisan make:controller UserController
php artisan make:controller PhotoController --resource
php artisan make:controller ShowProfile
class UserController extends Controller { /** * Instantiate a new controller instance. * * @return void */ public function __construct() { $this->middleware('auth'); $this->middleware('log')->only('index'); $this->middleware('subscribed')->except('store'); } }
php artisan make:controller PhotoController --resource --model=Photo