예제 #1
0
 public function __construct(Guard $auth, Registrar $registrar)
 {
     parent::__construct();
     $this->auth = $auth;
     $this->registrar = $registrar;
     $this->middleware('auth', ['except' => array('getLogin', 'postLogin')]);
 }
예제 #2
0
 public function __construct(Guard $auth, Registrar $registrar)
 {
     parent::__construct();
     $this->auth = $auth;
     $this->registrar = $registrar;
     $this->middleware('auth', ['except' => array('getLogin', 'postLogin')]);
     $contact = DB::table('contact')->where('is_deleted', ACTIVE)->where('reader', 1)->select('id', 'reader')->get();
     $notify = count($contact);
 }
예제 #3
0
 public function __construct(Guard $auth, Registrar $registrar)
 {
     parent::__construct();
     $this->auth = $auth;
     $this->registrar = $registrar;
     $this->middleware('auth', ['except' => array('getLogin', 'postLogin')]);
     $languages = LaravelLocalization::getSupportedLocales();
     foreach ($languages as $language => $values) {
         $supportedLocales[] = $language;
     }
     $locale = Request::segment(1);
     if (in_array($locale, $supportedLocales)) {
         LaravelLocalization::setLocale($locale);
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->middleware('auth');
 }
예제 #5
0
 public function __construct(Model $model, $base = 'tag')
 {
     parent::__construct($model, $base);
     view()->share('breadcrumb2Icon', 'tag');
 }
예제 #6
0
 public function __construct(Model $model, $base = 'artikel')
 {
     parent::__construct($model, $base);
     view()->share('breadcrumb2Icon', 'file-o');
     view()->share('useCKEditor', 'isi');
 }