zito
zito
FFilament
Created by zito on 10/5/2023 in #❓┊help
routing issue on first launch
Is it possible that routing either takes time to generate or needs to be accessed before it resolves after a fresh install/db seed? I have a repeatable issue that occurs when I first access my page where I either a get a php error saying the route is not found (a refresh fixes this) or on my dashboard page, if I click to navigate to another page on the side bar it will redirect me back to the dashboard 2-3 times before working. Has anyone else experienced this and any ideas on how to resolve?
5 replies
FFilament
Created by zito on 9/19/2023 in #❓┊help
default value on form select not populating
I am attempting to have a value preselected when the Select item loads on a form. I only found two references to the default function in the docs, but no explanation on how to use it. I assume you pass an item that is in the options collection. Here is a snippet of what I tried: $roles = Role::all()->pluck('name', 'id'); $defaultRole = $roles->first(); Select::make('role') ->options($roles) ->default($defaultRole) Any reason why this isn't populating the default value?
7 replies
FFilament
Created by zito on 9/18/2023 in #❓┊help
Can I modify the account modal in the header?
No description
5 replies