Created
December 17, 2020 16:09
-
-
Save sampoyigi/9f052220cdc304ccf279d15756c5da07 to your computer and use it in GitHub Desktop.
Sample of removing the password field from the admin users 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
Event::listen('admin.form.extendFields', function ($form) { | |
if (!$form->model instanceof \Admin\Models\Staffs_model) | |
return; | |
$form->removeField('password'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment