I’m using a custom Filament Select to create a User with createOptionUsing(). The user is created successfully, but $user->assignRole(...) does not persist (no row in model_has_roles). Environment: Windows 11, Filament v3, Laravel __, spatie/laravel-permission __, DB __. Code snippet below: php // createOptionUsing() ... User::create($data); $user->assignRole('role-name');
#Role not assigned when creating user via Select createOptionUsing() (Filament v3)
2 messages · Page 1 of 1 (latest)