diff --git a/README.md b/README.md index 50acc55..b350f69 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,7 @@ You need to add the method `canImpersonate()` to your user model: /** * @return bool */ - public function canImpersonate() + public function canImpersonate($impersonated = null) { // For example return $this->is_admin == 1; @@ -104,7 +104,7 @@ Please make sure to pass instance Model or Nova Resource ``Impersonate::make($th /** * @return bool */ - public function canBeImpersonated() + public function canBeImpersonated(?\Illuminate\Contracts\Auth\Authenticatable $impersonator = null) { // For example return $this->can_be_impersonated == 1;