public function __construct(GalleryRepositoryInterface $gallery)
 {
     $this->repository = $gallery;
     $this->middleware('web');
     $this->middleware('auth:admin.web');
     $this->setupTheme(config('theme.themes.admin.theme'), config('theme.themes.admin.layout'));
     parent::__construct();
 }
Example #2
0
 /**
  * Shardセットアップ
  */
 protected function setup_shard($client_id = null)
 {
     // 未ログイン時はクライアントIDが取得できないのでスルー
     if (is_null(self::get_user_id()) and is_null($client_id)) {
         return;
     }
     $client_id = is_null($client_id) ? self::get_user_id() : $client_id;
     self::$_shop = new \Shop($client_id);
     self::$_shop->init_models();
 }