public function __construct(MediaRepositoryInterface $media) { parent::__construct(); $this->media = $media; }
/** * Create a new authentication controller instance. * * @return void */ public function __construct() { parent::__construct(); $this->redirectTo = \Input::get('redirectUrl', '/'); $this->middleware('guest', ['except' => 'getLogout']); }
public function __construct(PostRepositoryInterface $postRepositoryInterface) { parent::__construct(); $this->post = $postRepositoryInterface; }
public function __construct() { parent::__construct(); }
public function __construct(PostRepositoryInterface $post) { parent::__construct(); $this->post = $post; $this->middleware('auth', ['only' => ['getAdd', 'postAdd']]); }