FilamentF
Filament3y ago
Homd

Pass data into custom pages?

Hi I want to pass this $record data to my custom pages. How do I do it?

This is my code
                Tables\Actions\Action::make("See Student Progress")->label("See Student Progress")
                ->url(fn (Module $record) => ClassroomResource::getUrl('progress')),
            ])



class ProgressControl extends Page
{
    protected static string $resource = ClassroomResource::class;
    public Module $record;
    protected static string $view = 'filament.resources.classroom-resource.pages.progress-control';
}
Was this page helpful?