This question already has an answer here:
I am trying to keep password in other table rather than the default table 'User' in laravel. The default login of laravel search for 'password' in the 'user' table. I want to just change the table it searches keeping other as default.
</div>
ON the User model you can specify your own table with your usernames and passwords.
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable{
protected $table = 'customUsersTable';
....
Everything you need to change will be in your Config/auth.php
file, you will have a Authentication Default array of..
'defaults' => [
'guard' => 'web',
'passwords' => 'users',
],
The 'guard' points to the 'guards' array slightly further down in that file. That looks like this...
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
],
The provider 'users' points to a provider slightly further down in that file again. That looks like this...
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\Models\SecurityUser::class,
],
],
The 'model' is the table that the guard is on, so just change the table to the one you want!
I hope this helped and that I understood your question correctly :D