custom page throws error when adding trait InteractsWithRecord
I'm not sure what I'm missing. I've created a new custom page with this command:
Added the page to the resource, it displays, all good.
Now when I add trait to it, I get this error:
When i remove the ? from the trait for testing, i get the the message that resolveRecord does not exist.
This is my page:
What am i doing wrong?
Solution:Jump to solution
You have used the wrong
use
if i take a look at : https://filamentphp.com/docs/3.x/panels/resources/custom-pages#using-a-resource-record
change
```php...3 Replies
Good morning! a little bump
Solution
You have used the wrong
use
if i take a look at : https://filamentphp.com/docs/3.x/panels/resources/custom-pages#using-a-resource-record
change
To
oh my god
thanks