This file contains hidden or 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'); | |
}); |
This file contains hidden or 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
// Taken from \Admin\ServiceProvider::replaceNavMenuItem | |
AdminMenu::registerCallback(function (Navigation $manager) { | |
// Change nav menu if single location mode is activated | |
if (AdminLocation::check()) { | |
$manager->mergeNavItem('locations', [ | |
'href' => admin_url('locations/settings'), | |
'title' => lang('admin::lang.side_menu.setting'), | |
], 'restaurant'); | |
} |