Jonas Siewertsen  πŸ‡ͺπŸ‡Ί
Jonas Siewertsen πŸ‡ͺπŸ‡Ί
FFilament
Created by Jonas Siewertsen πŸ‡ͺπŸ‡Ί on 3/8/2025 in #β“β”Šhelp
Single page to edit settings
Hej there How would you build a single-edit-page to let users edit settings? Usecase: Multi-Tenant App. One User is related to one shop. If Clicking on Settings / General / Whatever in the legt side menu, i would like to show an edit Form for his settings, without showing a listing. 1. Which approaches are there? 2. Which approach would you choose? Thanks in Advance ☺️
7 replies
FFilament
Created by Jonas Siewertsen πŸ‡ͺπŸ‡Ί on 4/20/2023 in #β“β”Šhelp
How to pass Entry id into ViewField
I want do something like this in my resource:
ViewField::make('frontend-link')
->view('filament.fields.frontend-link')
->viewData([
'id' => $modelId // A closure seems not to be an option
// 'id' => fn (Model $record): ?string => $record->id // Not working
])
ViewField::make('frontend-link')
->view('filament.fields.frontend-link')
->viewData([
'id' => $modelId // A closure seems not to be an option
// 'id' => fn (Model $record): ?string => $record->id // Not working
])
What's the best way to pass my model id into the view?
3 replies