public function __construct(MicroblogRepositoryInterface $repository) { parent::__construct(); $this->microblog = $repository; $this->microblog->setUserId(auth()->check() ? auth()->user()->id : null); $this->breadcrumb->push('Mikroblog', route('microblog.home')); }
/** * @param Forum $forum * @param Topic $topic * @param Post $post */ public function __construct(Forum $forum, Topic $topic, Post $post) { parent::__construct(); $this->forum = $forum; $this->topic = $topic; $this->post = $post; }
/** * @param User $user * @param Alert $alert * @param Pm $pm */ public function __construct(User $user, Alert $alert, Pm $pm) { parent::__construct(); $this->user = $user; $this->alert = $alert; $this->pm = $pm; }
public function __construct() { parent::__construct(); $this->middleware('guest'); }
public function __construct(User $user, Session $session) { parent::__construct(); $this->user = $user; $this->session = $session; }
/** * @param Forum $forum */ public function __construct(Forum $forum, Topic $topic) { parent::__construct(); $this->forum = $forum; $this->topic = $topic; }
public function __construct() { parent::__construct(); $this->middleware('guest', ['except' => 'signout']); }
/** * @param Forum $forum */ public function __construct(Forum $forum) { parent::__construct(); $this->forum = $forum; }
/** * @param User $user * @param Alert $alert */ public function __construct(User $user, Alert $alert) { parent::__construct(); $this->user = $user; $this->alert = $alert; }