WessBechard
WessBechard
FFilament
Created by WessBechard on 5/28/2024 in #❓┊help
Repeater Button Position - On Top? On top and bottom?
Is it possible to have Repeater action buttons at the top AND bottom? If not, can I position the button at the top of the repeater? I can't seem to find a setting to control the position.
1 replies
FFilament
Created by WessBechard on 5/22/2024 in #❓┊help
getUrl() Method not working on Model
Good morning. Hoping someone might have some insight, I can't find a clear answer with search. I'm trying to pre-fill a Placeholder with a link to another model's view resource, but I'm getting an error that I can't use my Organizations::getUrl() method. Forms\Components\Placeholder::make('Company Link') ->hidden(fn (Get $get) => $get('organization_id') == '') ->label('Company Link') ->content(function (Opportunities $record): string { $organization = Organizations::find($record->organization_id); // get a URL to the record view page return Organizations::getUrl('edit', ['record' => $organization]); }) Error: Call to undefined method App\Models\Organizations::getUrl() I just updated to the latest version (v3.2.81) and the issue persists. Organizations is already used on this form for a select without issue, it's just the getUrl() method that's not working.
6 replies
FFilament
Created by WessBechard on 4/12/2024 in #❓┊help
Error on creating record
foreach() argument must be of type array|object, string given When I create a record for my Organizations model, I'm getting this error, but no further details. The laravel log shows this additional information: production.ERROR: foreach() argument must be of type array|object, string given {"userId":3,"exception":"[object] (ErrorException(code: 0): foreach() argument must be of type array|object, string given at /var/www/html/portal/vendor/livewire/livewire/src/Mechanisms/HandleComponents/Synthesizers/CollectionSynth.php:28) I have two models that are behaving this way, and many others that are working without issue. I can't seem to figure out how to resolve the issue.
5 replies