battle with structure

This commit is contained in:
2024-10-22 13:30:03 +05:00
parent 5ffb0f2926
commit 96a5430cac
30 changed files with 1038 additions and 6 deletions

View File

@@ -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;
}

View File

@@ -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(),
];
}
}

View File

@@ -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(),
];
}
}