Created
January 20, 2022 11:01
-
-
Save MACscr/75205a54789520640e09554eb597a1f8 to your computer and use it in GitHub Desktop.
Filament User Impersonation Button that works on User Edit/View Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
## bottom of EditUser.php. Could be on View as well. | |
protected function getActions(): array | |
{ | |
return array_merge([ | |
ImpersonateButton::make('impersonate'), | |
], parent::getActions()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment