コード例 #1
0
ファイル: AuthController.php プロジェクト: louisthaihv/colong
 /**
  * Create a new authentication controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->middleware('guest', ['except' => 'getLogout']);
     $popup = Popup::where('status', 1)->first();
     view()->share('popup', $popup);
 }
コード例 #2
0
 public function __construct()
 {
     $popup = Popup::where('status', 1)->first();
     $head_cats = Category::where('type', HEADER_CAT)->where('status', 1)->get();
     $bottom_cats = Category::where('type', BOTTOM_CAT)->where('status', 1)->get();
     $top_navs = Category::where('type', TOP_NAV)->where('status', 1)->get();
     $weeks = Week::all();
     $clans = Clan::all();
     view()->share('popup', $popup);
     view()->share('weeks', $weeks);
     view()->share('head_cats', $head_cats);
     view()->share('bottom_cats', $bottom_cats);
     view()->share('top_navs', $top_navs);
     view()->share('clans', $clans);
 }