public function users() { $users = collect(); foreach (User::all() as $user) { if (KnockFacade::hasPermission($this->role->tag->name, $this->role->name, $this->name, $user->id)) { $users->push($user); } } return $users; }
private function getUsers() { return User::all(); }