public function can($ability, $arguments = []) { foreach ($this->individualPermissions as $permission) { if ($permission->name == $ability) { return true; } } return parent::can($ability, $arguments); }