contrôleur de création laravel
php artisan make:controller MyController
contrôleur de ressources laravel create
php artisan make:controller PhotoController --resource
commande de création de contrôleur laravel
php artisan make:controller UserController
middleware de contrôleur laravel
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');
}
}