Skip to content

Commit 8fe9448

Browse files
Add Create and List pages for ContentBlockResource
1 parent 77ce705 commit 8fe9448

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace App\Filament\App\Resources\ContentBlockResource\Pages;
4+
5+
use App\Filament\App\Resources\ContentBlockResource;
6+
use Filament\Resources\Pages\CreateRecord;
7+
8+
class CreateContentBlock extends CreateRecord
9+
{
10+
protected static string $resource = ContentBlockResource::class;
11+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace App\Filament\App\Resources\ContentBlockResource\Pages;
4+
5+
use App\Filament\App\Resources\ContentBlockResource;
6+
use Filament\Actions\DeleteAction;
7+
use Filament\Resources\Pages\EditRecord;
8+
9+
class EditContentBlock extends EditRecord
10+
{
11+
protected static string $resource = ContentBlockResource::class;
12+
13+
protected function getHeaderActions(): array
14+
{
15+
return [
16+
DeleteAction::make(),
17+
];
18+
}
19+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
namespace App\Filament\App\Resources\ContentBlockResource\Pages;
4+
5+
use App\Filament\App\Resources\ContentBlockResource;
6+
use Filament\Actions\CreateAction;
7+
use Filament\Resources\Pages\ListRecords;
8+
9+
class ListContentBlocks extends ListRecords
10+
{
11+
protected static string $resource = ContentBlockResource::class;
12+
13+
protected function getHeaderActions(): array
14+
{
15+
return [
16+
CreateAction::make(),
17+
];
18+
}
19+
}

0 commit comments

Comments
 (0)