Refactor navigation icon declarations in various resources for consistency; enhance Group model with new relationships and fillable properties; update Hotel and Pilgrim models with fillable attributes; improve table configurations across resources.
This commit is contained in:
@@ -11,7 +11,6 @@ use App\Models\Room;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class RoomResource extends Resource
|
||||
@@ -21,13 +20,14 @@ class RoomResource extends Resource
|
||||
protected static ?string $navigationLabel = 'Otaglar';
|
||||
|
||||
protected static ?string $pluralLabel = 'Otaglar';
|
||||
|
||||
protected static ?string $modelLabel = 'Otag';
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?int $navigationSort = 6;
|
||||
protected static string | BackedEnum | null $navigationIcon = 'icon-door-open';
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = 'icon-door-open';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
@@ -36,7 +36,8 @@ class RoomResource extends Resource
|
||||
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return $table->columns(RoomsTable::schema());
|
||||
return $table
|
||||
->columns(RoomsTable::schema());
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
|
||||
Reference in New Issue
Block a user