Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kristi11 committed Jan 20, 2025
1 parent fd63c4d commit 4075c6f
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions app/Filament/Resources/CRUDSettingsResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,19 @@ public static function getPages(): array
];
}

// public static function canCreate(): bool
// {
// // Disable the "Create" button if a row already exists
// return CRUD_settings::query()->doesntExist();
// }
//
// public static function canEdit(Model $record): bool
// {
// return false;
// }
//
// public static function canDelete(Model $record): bool
// {
// return false;
// }
public static function canCreate(): bool
{
// Disable the "Create" button if a row already exists
return CRUD_settings::query()->doesntExist();
}

public static function canEdit(Model $record): bool
{
return false;
}

public static function canDelete(Model $record): bool
{
return false;
}
}

0 comments on commit 4075c6f

Please sign in to comment.