blex
Setting/getting nested data form wide
Oh was actually really simple, ended up doing this which is far cleaner than nested scope gets per field
Placeholder::make('overview')
->hiddenLabel()
->content(function(Get $get){
$data = self::updateGrandTotal($get);
return view('forms.components.prod-quote-calculations')->with('data', $data);
})
Cheers for the insight!
Cheers for the insight!
13 replies
Setting/getting nested data form wide
Hey @Emaz would you mind showcasing your placeholder solution please? I'm trying to do the exact same thing and currently utalising a similar nesting function to determine the $get scope correctly which is getting too complicated
13 replies
sushi many to many relation manager
Squire by Dan Harrin would probably do what you need - based on Sushi and supports relationships - https://github.com/squirephp/squire?tab=readme-ov-file
5 replies