battle with structure
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace $CREATE_RESOURCE_PAGE_NAMESPACE$;
|
||||
|
||||
use $BASE_RESOURCE_NAMESPACE$;
|
||||
use Filament\Resources\Pages\CreateRecord;
|
||||
|
||||
class Create$MODEL_NAME_SINGULAR$ extends CreateRecord
|
||||
{
|
||||
protected static string $resource = $MODEL_NAME_SINGULAR$Resource::class;
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace $EDIT_RESOURCE_PAGE_NAMESPACE$;
|
||||
|
||||
use $BASE_RESOURCE_NAMESPACE$;
|
||||
use Filament\Actions;
|
||||
use Filament\Resources\Pages\EditRecord;
|
||||
|
||||
class Edit$MODEL_NAME_SINGULAR$ extends EditRecord
|
||||
{
|
||||
protected static string $resource = $MODEL_NAME_SINGULAR$Resource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
Actions\DeleteAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace $LIST_RESOURCE_PAGE_NAMESPACE$;
|
||||
|
||||
use $BASE_RESOURCE_NAMESPACE$;
|
||||
use Filament\Actions;
|
||||
use Filament\Resources\Pages\ListRecords;
|
||||
|
||||
class List$MODEL_NAME_PLURAL$ extends ListRecords
|
||||
{
|
||||
protected static string $resource = $MODEL_NAME_SINGULAR$Resource::class;
|
||||
|
||||
protected function getHeaderActions(): array
|
||||
{
|
||||
return [
|
||||
Actions\CreateAction::make(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user