Skip to content

Instantly share code, notes, and snippets.

@sampoyigi
Created December 17, 2020 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sampoyigi/9f052220cdc304ccf279d15756c5da07 to your computer and use it in GitHub Desktop.
Save sampoyigi/9f052220cdc304ccf279d15756c5da07 to your computer and use it in GitHub Desktop.
Sample of removing the password field from the admin users page
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