In the "NovaServiceProvider"
I want to make an menu only for not-admins, I proof if is admin but have no Auth or $request
if ($request->user()->hasRole('super-admin')) {
then I create an Menu
Nova::mainMenu(function (Request $request) {
At this Point I have an $request, but the mainMenu has created and the menu are empty for all admins.
I don't know if is possible to
if (admin){
$this->deleteThisInstanceAndShowAll;
}
or get the $request bevor create the menu