F
Filament17mo 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')),
])
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';
}
class ProgressControl extends Page
{
protected static string $resource = ClassroomResource::class;
public Module $record;
protected static string $view = 'filament.resources.classroom-resource.pages.progress-control';
}
3 Replies
LeandroFerreira
LeandroFerreira17mo ago
GitHub
Full Livewire component with Fillament Layout? · filamentphp filame...
HI, i have created a Livewire component under its own route: Route::get(..., Componente::class). But how can i use it with the Filament Layout? I have created under views/components/layouts/app.bla...
Homd
HomdOP17mo ago
Yes I ended up using this way. But I dont want it to expose the id in the url, is it possible?
LeandroFerreira
LeandroFerreira17mo ago
maybe using session

Did you find this page helpful?