Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
update readme with new params for methods
  • Loading branch information
BinaryKitten committed Jun 17, 2021
1 parent e7f21a2 commit fc7f68f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit fc7f68f

Please sign in to comment.