This commit is contained in:
Lizandro Guarnizo
2026-01-29 20:28:26 -05:00
parent 560099c003
commit 324c83021e
6 changed files with 240 additions and 0 deletions
+6
View File
@@ -16,6 +16,12 @@ class OjalResource extends Resource
protected static ?string $model = Ojal::class;
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
protected static ?string $navigationGroup = 'Producción';
protected static bool $shouldRegisterNavigation = false; // Ocultar del menú
public static function canViewAny(): bool
{
return auth()->user()?->can('ver ojals') ?? false;
}
public static function form(Forms\Form $form): Forms\Form
{