© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
torriv

Get record in custom page

I've made a custom view page where i want to display a table.

In v2 i had this code:
  
protected function getViewData(): array
{
    $data = $this->record->WorkoutExercises()->get();

    return compact('data');
}
  
public function mount($record): void
{
    $this->record = TrainingProgram::find($record);
}
  
protected function getViewData(): array
{
    $data = $this->record->WorkoutExercises()->get();

    return compact('data');
}
  
public function mount($record): void
{
    $this->record = TrainingProgram::find($record);
}


and it still work, but i can see it's deprecated.

How would we do it in v3?
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

Get record in custom page
FilamentFFilament / ❓┊help
3y ago
Get record in custom page
FilamentFFilament / ❓┊help
3y ago
Current record in custom page ?
FilamentFFilament / ❓┊help
3y ago
Custom page with record update
FilamentFFilament / ❓┊help
3y ago