Laravel Ldaprecord with Spatie Roles - assign role after first login

Viewed 16

I was researching the case, but I couldn't find the right topic.

I use Ldaprecord along with Laravel Breeze to authenticate Users. On the very beginning database is empty, so after 1st login, User is added (imported) to DB.

But now I wanted to add Spatie Roles and assign a role and permission to the User who is signing into the application for the 1st time. How I can achieve that?

1 Answers
Related