Custom page model instance
Hello people,
I made a new custom page for a filament resource with
And it created two files:
How can I pass now the instance of the model record whose view link I clicked?
I'm being redirected to tickets/{ticket_id} but I cannot find anywhere how I can show the ticket properties.
Any help would be greatly apreciated π
Solution:Jump to solution
```php
use \Filament\Resources\Pages\Concerns\InteractsWithRecord;
public function mount(int | string $record): void
{
$this->record = $this->resolveRecord($record);...
4 Replies
Solution
Thank you Leandro!
That did the trick for me!
Can you please show me, where did you find it in the documentation?
This isn't available in the docs... check the source code βοΈ
β€οΈ thank you again!