Adds a Filament admin (Profile settings page plus CRUD resources for Education, Experience, Projects, and Posts) backing a public-facing personal site: hero/about/timeline home page, project showcase, and blog, styled with a dark editorial theme (Fraunces + Instrument Sans). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
49 lines
1.3 KiB
PHP
49 lines
1.3 KiB
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Education;
|
|
|
|
use App\Filament\Resources\Education\Pages\CreateEducation;
|
|
use App\Filament\Resources\Education\Pages\EditEducation;
|
|
use App\Filament\Resources\Education\Pages\ListEducation;
|
|
use App\Filament\Resources\Education\Schemas\EducationForm;
|
|
use App\Filament\Resources\Education\Tables\EducationTable;
|
|
use App\Models\Education;
|
|
use BackedEnum;
|
|
use Filament\Resources\Resource;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
use Filament\Tables\Table;
|
|
|
|
class EducationResource extends Resource
|
|
{
|
|
protected static ?string $model = Education::class;
|
|
|
|
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedRectangleStack;
|
|
|
|
public static function form(Schema $schema): Schema
|
|
{
|
|
return EducationForm::configure($schema);
|
|
}
|
|
|
|
public static function table(Table $table): Table
|
|
{
|
|
return EducationTable::configure($table);
|
|
}
|
|
|
|
public static function getRelations(): array
|
|
{
|
|
return [
|
|
//
|
|
];
|
|
}
|
|
|
|
public static function getPages(): array
|
|
{
|
|
return [
|
|
'index' => ListEducation::route('/'),
|
|
'create' => CreateEducation::route('/create'),
|
|
'edit' => EditEducation::route('/{record}/edit'),
|
|
];
|
|
}
|
|
}
|