© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
1 reply
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!
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

send parameter to create record page
FilamentFFilament / ❓┊help
2y ago
Page Policy permission
FilamentFFilament / ❓┊help
3y ago
Custom page with parameter (independent from resource)
FilamentFFilament / ❓┊help
11mo ago
Register Page with parameters
FilamentFFilament / ❓┊help
12mo ago