F
Filament2mo ago
Xavi

Create Page Policy with new parameter

I have a create page for PostResource and i have a parameter media on url ('create' => Pages\CreatePost::route('/create/{media}'), and i get it on page with
#[Url]
public Media $media;
#[Url]
public Media $media;
I want to check if $media status its active to allow users to create a post on this media. How can i get this on Post Policy? Thanks!
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server