F
Filament15mo ago
MRBUG

how can we change the table from user to admin for login page or login credential

any idea about this to change the login credentioal will get or create the admin users to go to the admin panel ??
2 Replies
GDG
GDG15mo ago
Your question could do with some more context but if you mean creating an admin user to log in to the panel, you need to run php artisan make:filament-user after you have done your initial php artisan migrate If you mean, multiple database user tables, one for admin and one for users, this is something that I wouldn't recommend. Keep users together regardless of their roles and manage their access accordingly.
MRBUG
MRBUGOP15mo ago
no i just want that Panel Builder Users #Overview By default, all App\Models\Users can access Filament locally. To allow them to access Filament in production, you must take a few extra steps to ensure that only the correct users have access to the app. but i want that to change the table or model App\Models\Users to App\Models\Admin for login i have done this by my self i go to auth file which is in config and then i found that 'providers' => [ 'admins' => [ 'driver' => 'eloquent', 'model' => App\Models\User::class, ],` then i changed User to Admin and some more changes in admin model then i got the solution.
Want results from more Discord servers?
Add your server