예제 #1
0
 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'));
 }
예제 #2
0
 /**
  * @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;
 }
예제 #3
0
 /**
  * @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');
 }
예제 #5
0
 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']);
 }
예제 #8
0
 /**
  * @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;
 }