示例#1
0
 /**
  * MediaController constructor.
  * @param Template $template
  */
 public function __construct(Template $template)
 {
     parent::__construct($template, ['auth', 'model']);
     $this->setClass(Media::class);
 }
示例#2
0
 /**
  * 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']);
 }
示例#3
0
 /**
  * Create a new authentication controller instance.
  *
  * @return void
  */
 public function __construct(Template $template)
 {
     parent::__construct($template);
     $this->middleware('guest', ['except' => 'logout']);
 }