Build & Deploy / build (push) Successful in 18s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Programs;
|
|
|
|
use App\Filament\Resources\Programs\Pages\CreateProgram;
|
|
use App\Filament\Resources\Programs\Pages\EditProgram;
|
|
use App\Filament\Resources\Programs\Pages\ListPrograms;
|
|
use App\Filament\Resources\Programs\Schemas\ProgramForm;
|
|
use App\Filament\Resources\Programs\Tables\ProgramsTable;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
use Functional\Programs\Models\Program;
|
|
|
|
class ProgramResource extends Resource
|
|
{
|
|
protected static ?string $model = Program::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return ProgramForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return ProgramsTable::configure($table);
|
|
}
|
|
|
|
public static function getRelations(): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListPrograms::route('/'),
|
|
'create' => CreateProgram::route('/create'),
|
|
'edit' => EditProgram::route('/{record}/edit'),
|
|
];
|
|
}
|
|
}
|