-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
Hi i extend the model like this:
<?php
namespace App\Filament\Resources;
use Althinect\FilamentSpatieRolesPermissions\Resources\PermissionResource as BasePermissionResource;
use Filament\Tables\Table;
class PermissionResource extends BasePermissionResource
{
public static function getNavigationBadge(): ?string
{
return static::getModel()::count();
}
public static function getNavigationBadgeColor(): string|array|null
{
return 'warning';
}
public static function table(Table $table): Table
{
return parent::table($table)
->bulkActions([]);
}
}
I added the table method with the idea of overwriting the original one and stopping the bulk options because I don't want the permissions to be able to be deleted, but it didn't work. Do you know how I can do it?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels