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);
});
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey wanna ask, in a situation where I'm not using a Users table for the login, where am I supposed to change the referenced table?
you can change it on config/auth.php providers configuration.
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'
],
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);
});