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