public function __construct()
 {
     VG::checkAuth();
     $user = User::where('id', session()->get('uid'))->first();
     if ($user == null) {
         return;
     }
     $this->uid = $user->id;
 }
Beispiel #2
0
 public function __construct()
 {
     VG::checkAuth();
     $user = User::whereId(session()->get('uid'))->first();
     $this->uid = $user->id;
 }