MoisesSegura
Default route filament login
Hi, I've been working on a project that was created using the filament demo, so it starts from login when I log in to localhost. The thing is the web.php file is empty. Is there any other file where I can configure this? I need to change the filament login route to '/admin' or smt.
4 replies
modifyQueryUsing with a role
hi guys, I have this query in the table function in my productResource but I only want to apply it when the user does not have the 'Admin' role, is there a way to do it?
->modifyQueryUsing(fn (Builder $query): Builder => $query->where('country_id', auth()->user()->country_id))
3 replies