Example #1
0
 /**
  * Create a new API User controller.
  *
  * @param UserRepositoryInterface $users
  *
  * @return \Wardrobe\Cabinet\Controllers\Api\UserController
  */
 public function __construct(UserRepositoryInterface $users)
 {
     parent::__construct();
     $this->users = $users;
     $this->beforeFilter('wardrobe.auth');
     $this->beforeFilter('csrf_header', array('only' => array('store', 'update', 'destroy')));
 }
Example #2
0
 public function __construct(ChartRepository $chart)
 {
     parent::__construct();
     //		$this->beforeFilter('wardrobe.auth');
     $this->chart = $chart;
 }
Example #3
0
 /**
  * Create a new API Posts controller.
  *
  * @param PostRepositoryInterface $posts
  *
  * @return \Wardrobe\Cabinet\Controllers\Api\PostController
  */
 public function __construct(PostRepositoryInterface $posts)
 {
     parent::__construct();
     $this->posts = $posts;
     $this->beforeFilter('wardrobe.auth');
 }