Skip to content

Commit 2328d60

Browse files
committed
fix: eliminate redundant breadcrumbs
1 parent 5933a64 commit 2328d60

10 files changed

Lines changed: 38 additions & 10 deletions

File tree

app/Filament/Resources/Appointments/Pages/CreateAppointment.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ class CreateAppointment extends CreateRecord
1717

1818
protected static bool $canCreateAnother = false;
1919

20+
public function getBreadcrumbs(): array
21+
{
22+
return [];
23+
}
24+
2025
protected function mutateFormDataBeforeCreate(array $data): array
2126
{
2227
$data['user_id'] = auth()->id();

app/Filament/Resources/Appointments/Pages/EditAppointment.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ protected function getHeaderActions(): array
2020
DeleteAction::make(),
2121
];
2222
}
23+
24+
public function getBreadcrumbs(): array
25+
{
26+
return [];
27+
}
2328
}

app/Filament/Resources/Appointments/Pages/ViewAppointment.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ public function getTitle(): string
2424
]);
2525
}
2626

27+
public function getBreadcrumbs(): array
28+
{
29+
return [];
30+
}
31+
2732
protected function getHeaderActions(): array
2833
{
2934
return [

app/Filament/Resources/Profiles/Pages/EditRecord.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ public function getTitle(): string
3131

3232
public function getBreadcrumbs(): array
3333
{
34-
return [
35-
auth()->user()->getFilamentName(),
36-
];
34+
return [];
3735
}
3836

3937
protected function getRedirectUrl(): string

app/Filament/Resources/Profiles/Pages/ViewRecord.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use App\Filament\Resources\Profiles\Concerns\ResolvesRecord;
1010
use App\Filament\Resources\Profiles\ProfileResource;
1111
use Filament\Actions\EditAction;
12-
use Filament\Facades\Filament;
1312
use Filament\Resources\Pages\ViewRecord as BaseViewRecord;
1413
use Filament\Support\Icons\Heroicon;
1514

@@ -38,8 +37,6 @@ public function getTitle(): string
3837

3938
public function getBreadcrumbs(): array
4039
{
41-
return [
42-
Filament::auth()->user()->getFilamentName(),
43-
];
40+
return [];
4441
}
4542
}

app/Filament/Resources/Reports/Pages/ViewReport.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ public function getTitle(): string
2626
{
2727
return $this->getRecord()->title;
2828
}
29+
30+
public function getBreadcrumbs(): array
31+
{
32+
return [];
33+
}
2934
}

app/Filament/Resources/Users/Pages/EditUser.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,9 @@ protected function authorizeAccess(): void
2121
]));
2222
}
2323
}
24+
25+
public function getBreadcrumbs(): array
26+
{
27+
return [];
28+
}
2429
}

app/Filament/Resources/Users/Pages/Nurse/EditRecord.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ public function getTitle(): string
3131

3232
public function getBreadcrumbs(): array
3333
{
34-
return [
35-
auth()->user()->getFilamentName(),
36-
];
34+
return [];
3735
}
3836

3937
protected function getRedirectUrl(): string

app/Filament/Resources/Users/Pages/Nurse/ViewRecord.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,9 @@ public function getTitle(): string
7171
{
7272
return $this->getRecord()->full_name;
7373
}
74+
75+
public function getBreadcrumbs(): array
76+
{
77+
return [];
78+
}
7479
}

app/Filament/Resources/Users/Pages/ViewUser.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ protected function getHeaderActions(): array
2929
EditAction::make(),
3030
];
3131
}
32+
33+
public function getBreadcrumbs(): array
34+
{
35+
return [];
36+
}
3237
}

0 commit comments

Comments
 (0)