From fc7f68f549057dc0ac51111847a8bce86b72b0bd Mon Sep 17 00:00:00 2001 From: Kathryn Reeve <67553+BinaryKitten@users.noreply.github.com> Date: Thu, 17 Jun 2021 16:02:02 +0100 Subject: [PATCH] Update README.md update readme with new params for methods --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;