DEV Community

Discussion on: Customize Laravel Auth (Laravel Breeze Registration and Login)

Collapse
 
wanazhad24 profile image
wanazhad24 • Edited

Is this correct? Even after I changed that, it is saying that the credentials is invalid.

'providers' => [
'staffs' => [
'driver' => 'eloquent',
'model' => App\Models\Staff::class,
'table' => 'staffs'
],

Thread Thread
 
thatal profile image
Sunil Thatal • Edited

yes it is correct. you don't have to add table if you are using eloquent. Add query listener above your code to monitor query.
\DB::listen(function($query){
\Log::debug($query->sql);
\Log::debug($query->bindings);
});