/** * Index handler. * * @return \Illuminate\Database\Eloquent\Collection */ public function index() { $userId = $this->request->user()->getKey(); return $this->clients->activeForUser($userId)->makeVisible('secret'); }
/** * Index handler. * * @return \Illuminate\Database\Eloquent\Collection */ public function index() { $userId = $this->request->user()->getKey(); return $this->clients->activeForUser($userId)->makeVisible('secret'); }