public function __construct() { $this->middleware('api'); }
/** * Constructor. * * @param type \Litecms\Gallery\Interfaces\GalleryRepositoryInterface $gallery * * @return type */ public function __construct(GalleryRepositoryInterface $gallery) { $this->repository = $gallery; parent::__construct(); }