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.
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);
});