Using custom Filament page (\Filament\Pages) Page is within a Cluster.
What I want to achieve: Having user/{tenant}/cluster/{model}/page work - working with a specific record in a custom Page, where the Page is inside a Cluster.
On the Cluster class, I define slug:
protected static ?string $slug = 'cluster';
protected static ?string $slug = 'cluster';
On the Page class, I define this:
use InteractsWithRecord;public Service $service;public static function getRoutePath(): string{ return '{service}/page';}public function mount(Service $service): void{ $this->service = $service;}
use InteractsWithRecord;public Service $service;public static function getRoutePath(): string{ return '{service}/page';}public function mount(Service $service): void{ $this->service = $service;}