feat: Permission System Hướng B - Models, Command, User can(), session cache
This commit is contained in:
@@ -14,6 +14,7 @@ use App\Filament\Resources\Contracts\Tables\ContractsTable;
|
||||
|
||||
class ContractResource extends Resource
|
||||
{
|
||||
protected static array $permissionActions = ["view", "create", "update", "delete", "restore", "forceDelete"];
|
||||
protected static ?string $model = Contract::class;
|
||||
protected static string | \BackedEnum | null $navigationIcon = 'heroicon-o-document-text';
|
||||
protected static string | \UnitEnum | null $navigationGroup = NavigationGroup::TRANSACTION->value;
|
||||
|
||||
Reference in New Issue
Block a user