Proje dosyaları eklendi
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\Keywords;
|
||||
|
||||
use App\Filament\Resources\Keywords\Pages\ListKeywords;
|
||||
use App\Filament\Resources\Keywords\Pages\ViewKeyword;
|
||||
use App\Filament\Resources\Keywords\Schemas\KeywordInfolist;
|
||||
use App\Filament\Resources\Keywords\Tables\KeywordsTable;
|
||||
use App\Models\Keyword;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
use Filament\Support\Icons\Heroicon;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class KeywordResource extends Resource
|
||||
{
|
||||
protected static ?string $model = Keyword::class;
|
||||
|
||||
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedMagnifyingGlass;
|
||||
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return __('ui.keywords');
|
||||
}
|
||||
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
return __('resources.keyword');
|
||||
}
|
||||
|
||||
public static function getPluralModelLabel(): string
|
||||
{
|
||||
return __('ui.keywords');
|
||||
}
|
||||
|
||||
public static function infolist(Schema $s): Schema
|
||||
{
|
||||
return KeywordInfolist::configure($s);
|
||||
}
|
||||
|
||||
public static function table(Table $t): Table
|
||||
{
|
||||
return KeywordsTable::configure($t);
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return ['index' => ListKeywords::route('/'), 'view' => ViewKeyword::route('/{record}')];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user