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