/** * MediaController constructor. * @param Template $template */ public function __construct(Template $template) { parent::__construct($template, ['auth', 'model']); $this->setClass(Media::class); }
/** * Constructor. * User is required to be signed in and * all requests should be prefixed with a model class (/models/...) */ public function __construct(Template $template) { parent::__construct($template, ['auth', 'model']); }
/** * Create a new authentication controller instance. * * @return void */ public function __construct(Template $template) { parent::__construct($template); $this->middleware('guest', ['except' => 'logout']); }