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
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