Skip to content

Commit

Permalink
Merge branch 'main' into minimal-theme
Browse files Browse the repository at this point in the history
  • Loading branch information
zepfietje committed Dec 28, 2023
2 parents 2de4a08 + abec987 commit 63bdc4a
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Filament/Resources/Blog/PostResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Filament\Infolists\Components;
use Filament\Infolists\Infolist;
use Filament\Notifications\Notification;
use Filament\Pages\SubNavigationPosition;
use Filament\Resources\Pages\Page;
use Filament\Resources\Resource;
use Filament\Tables;
Expand All @@ -33,6 +34,8 @@ class PostResource extends Resource

protected static ?int $navigationSort = 0;

protected static SubNavigationPosition $subNavigationPosition = SubNavigationPosition::Top;

public static function form(Form $form): Form
{
return $form
Expand Down
6 changes: 6 additions & 0 deletions app/Filament/Resources/Blog/PostResource/Pages/EditPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
use App\Filament\Resources\Blog\PostResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
use Illuminate\Contracts\Support\Htmlable;

class EditPost extends EditRecord
{
protected static string $resource = PostResource::class;

public function getTitle(): string | Htmlable
{
return $this->record->title;
}

protected function getActions(): array
{
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public function getTitle(): string | Htmlable
return "Manage {$this->getRecordTitle()} Comments";
}

public function getBreadcrumb(): string
{
return 'Comments';
}

public static function getNavigationLabel(): string
{
return 'Manage Comments';
Expand Down
6 changes: 6 additions & 0 deletions app/Filament/Resources/Blog/PostResource/Pages/ViewPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@

use App\Filament\Resources\Blog\PostResource;
use Filament\Resources\Pages\ViewRecord;
use Illuminate\Contracts\Support\Htmlable;

class ViewPost extends ViewRecord
{
protected static string $resource = PostResource::class;

public function getTitle(): string | Htmlable
{
return $this->record->title;
}

protected function getActions(): array
{
return [];
Expand Down

0 comments on commit 63bdc4a

Please sign in to comment.