Can't hydrate single edit/view page select field with M:M relationship
Laravel/Filament newbie. Any help would be much appreciated ๐
I have data stored in M:M table
Trying to hydrate it in custom page CompanyRegions.php
But I end up passing fill($existing_prefectures) this:
doing fill($companyPrefectures->attributesToArray()) also does not work (method does not exist error)
I feel like I'm almost there but don't understand something important. Or maybe https://livewire.laravel.com/docs/lifecycle-hooks#mount only accepts non-complex data, I don't know. fill($data) works just fine for me for Models that have simple input fields.
Laravel
Lifecycle Hooks | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
0 Replies