Update carshowcategory filament resource
This commit is contained in:
parent
f54e41aef9
commit
003e686224
@ -38,17 +38,25 @@ class CarShowCategoryResource extends Resource
|
||||
])
|
||||
->actions([
|
||||
Tables\Actions\EditAction::make(),
|
||||
Tables\Actions\DeleteAction::make(),
|
||||
])
|
||||
->bulkActions([
|
||||
Tables\Actions\DeleteBulkAction::make(),
|
||||
]);
|
||||
}
|
||||
|
||||
public static function getRelations(): array
|
||||
{
|
||||
return [
|
||||
//
|
||||
];
|
||||
}
|
||||
|
||||
public static function getPages(): array
|
||||
{
|
||||
return [
|
||||
'index' => Pages\ManageCarShowCategories::route('/'),
|
||||
'index' => Pages\ListCarShowCategories::route('/'),
|
||||
'create' => Pages\CreateCarShowCategory::route('/create'),
|
||||
'edit' => Pages\EditCarShowCategory::route('/{record}/edit'),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\CarShowCategoryResource\Pages;
|
||||
|
||||
use App\Filament\Resources\CarShowCategoryResource;
|
||||
use Filament\Pages\Actions;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
|
||||
class CreateCarShowCategory extends CreateRecord
|
||||
{
|
||||
protected static string $resource = CarShowCategoryResource::class;
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Filament\Resources\CarShowCategoryResource\Pages;
|
||||
|
||||
use App\Filament\Resources\CarShowCategoryResource;
|
||||
use Filament\Pages\Actions;
|
||||
use Filament\Resources\Pages\EditRecord;
|
||||
|
||||
class EditCarShowCategory extends EditRecord
|
||||
{
|
||||
protected static string $resource = CarShowCategoryResource::class;
|
||||
|
||||
protected function getActions(): array
|
||||
{
|
||||
return [
|
||||
Actions\DeleteAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
@ -4,9 +4,9 @@ namespace App\Filament\Resources\CarShowCategoryResource\Pages;
|
||||
|
||||
use App\Filament\Resources\CarShowCategoryResource;
|
||||
use Filament\Pages\Actions;
|
||||
use Filament\Resources\Pages\ManageRecords;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class ManageCarShowCategories extends ManageRecords
|
||||
class ListCarShowCategories extends ListRecords
|
||||
{
|
||||
protected static string $resource = CarShowCategoryResource::class;
|
||||
|
Loading…
Reference in New Issue
Block a user