bwurtz999
bwurtz999
FFilament
Created by bwurtz999 on 11/26/2024 in #❓┊help
HintAction Adding to Select Element
Of course the answer was in the docs... ->createOptionUsing() needs to return the ID of the newly created model
14 replies
FFilament
Created by bwurtz999 on 11/26/2024 in #❓┊help
HintAction Adding to Select Element
Any ideas?
14 replies
FFilament
Created by bwurtz999 on 11/26/2024 in #❓┊help
HintAction Adding to Select Element
Does not set the meal_id
14 replies
FFilament
Created by bwurtz999 on 11/26/2024 in #❓┊help
HintAction Adding to Select Element
->createOptionUsing(function ($data, $set) use ($order) {
$meal = Meal::create([
'name' => $data['name'],
'kitchen_id' => $order->provider_id,
'approved' => false,
]);

$set('meal_id', $meal->id);
->createOptionUsing(function ($data, $set) use ($order) {
$meal = Meal::create([
'name' => $data['name'],
'kitchen_id' => $order->provider_id,
'approved' => false,
]);

$set('meal_id', $meal->id);
14 replies
FFilament
Created by bwurtz999 on 11/26/2024 in #❓┊help
HintAction Adding to Select Element
Actually I didn't fix the issue...
14 replies
FFilament
Created by bwurtz999 on 11/26/2024 in #❓┊help
HintAction Adding to Select Element
But I'm sticking with createOption, I like it better than hintAction in this case
14 replies
FFilament
Created by bwurtz999 on 11/26/2024 in #❓┊help
HintAction Adding to Select Element
Should have been $set('meal_id', $meal->id);
14 replies
FFilament
Created by bwurtz999 on 11/26/2024 in #❓┊help
HintAction Adding to Select Element
Turns out my issue was here though: $set('meal_id', $meal);
14 replies
FFilament
Created by bwurtz999 on 11/26/2024 in #❓┊help
HintAction Adding to Select Element
@TranceCode I never knew about->createOptionForm and ->createOptionUsing, those are great. Thank you!
14 replies
FFilament
Created by bwurtz999 on 11/26/2024 in #❓┊help
HintAction Adding to Select Element
Trying this now!
14 replies
FFilament
Created by David | Fortune Validator on 11/8/2024 in #❓┊help
Custom Pages By User
This would keep everything on one page, and you could control the different Livewire components separately
10 replies
FFilament
Created by David | Fortune Validator on 11/8/2024 in #❓┊help
Custom Pages By User
And you could pass the user ID to each Livewire component so it could render the data you need
10 replies
FFilament
Created by David | Fortune Validator on 11/8/2024 in #❓┊help
Custom Pages By User
If not, you could render a custom page for rephub/10 and then use multiple Livewire components on that custom page
10 replies
FFilament
Created by David | Fortune Validator on 11/8/2024 in #❓┊help
Custom Pages By User
The simplest answer would probably be a relation manager. Is the data simple enough to display in a table? (https://filamentphp.com/docs/3.x/panels/resources/relation-managers)
10 replies
FFilament
Created by root55 on 10/17/2024 in #❓┊help
Custom field with google map re-render problem
Good to know! Thanks for sharing
6 replies
FFilament
Created by root55 on 10/17/2024 in #❓┊help
Custom field with google map re-render problem
If you're using a custom Livewire component, implement HasForms and then put the map outside of the form
6 replies
FFilament
Created by root55 on 10/17/2024 in #❓┊help
Custom field with google map re-render problem
I haven't tried this with a map, but I've had a similar issue before. I don't think Filament registers the wire:ignore
6 replies
FFilament
Created by root55 on 10/17/2024 in #❓┊help
Custom field with google map re-render problem
Can you share the relevant code?
6 replies
FFilament
Created by bwurtz999 on 10/15/2024 in #❓┊help
Refresh Form Data in Modal
Thank you!
4 replies
FFilament
Created by TheRealTeeHill on 5/30/2024 in #❓┊help
Long email address in tooltip breaking at the @
Asking again to see if anyone has any ideas - any idea how to use HTML in the tooltip? And why it worked previously but not now?
14 replies