harumi
harumi
FFilament
Created by harumi on 1/22/2025 in #❓┊help
dynamic index route
i think it should be fine 🙂 , thanks for the help
15 replies
FFilament
Created by harumi on 1/22/2025 in #❓┊help
dynamic index route
i think something like this is work for me
public function getBreadcrumbs(): array
{
return [
url()->current() => static::$breadcrumb ?? static::getTitle(),
0 => request()->route('resource'),
];
}
public function getBreadcrumbs(): array
{
return [
url()->current() => static::$breadcrumb ?? static::getTitle(),
0 => request()->route('resource'),
];
}
i override the getBreadcrumbs method from the ListTransactions class this is correct?
15 replies
FFilament
Created by harumi on 1/22/2025 in #❓┊help
dynamic index route
yeah that all the error
15 replies
FFilament
Created by harumi on 1/22/2025 in #❓┊help
dynamic index route
where should i override the getBreadcrumbs? on resource class or on page class?
15 replies
FFilament
Created by harumi on 1/22/2025 in #❓┊help
dynamic index route
do you have documentation for that? i have override the getBreadcrumbs method like this
public static function getBreadcrumbs(): array
{
return [];
}
public static function getBreadcrumbs(): array
{
return [];
}
it's getting error like this
Cannot redeclare App\Filament\Resources\TransactionResource::getBreadcrumbs()
Cannot redeclare App\Filament\Resources\TransactionResource::getBreadcrumbs()
15 replies
FFilament
Created by harumi on 1/22/2025 in #❓┊help
dynamic index route
I have declared the getNavigationItems method like this
public static function getNavigationItems(): array
{
return [
// mock get data from db
NavigationItem::make()
->label('Testing')
->icon('heroicon-o-rectangle-stack')
->url('/dashboard/action/name')
->isActiveWhen(function (): bool {
return request()->is('dashboard/action/name*');
}),
];
}
public static function getNavigationItems(): array
{
return [
// mock get data from db
NavigationItem::make()
->label('Testing')
->icon('heroicon-o-rectangle-stack')
->url('/dashboard/action/name')
->isActiveWhen(function (): bool {
return request()->is('dashboard/action/name*');
}),
];
}
15 replies