In Laravel, how to implement database driver and provider authentication without using the elegant way
<p>The drivers supported by Laravel are "<strong>database</strong>" or "<strong>eloquent</strong>" to authorize the website.
In the default <strong>config/auth.php</strong> we can see that it always states that the driver is eloquent. </p>
<pre class="brush:php;toolbar:false;">```
/*
|------------------------------------------------- -----------------------
| User Providers
|------------------------------------------------- -----------------------
|
| All authentication drivers have a user provider. This defines how the user's data is actually retrieved from the database or other storage mechanism.
|
| If you have multiple user tables or models, you can configure multiple sources representing each model/table. These sources can then be assigned to any additional authentication protection you define.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\Models\Users::class,
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
```</pre>
<p>Then we have a schema <strong>User</strong> associated with the table User for checking authentication.
Therefore, we can use some of the <strong>auth</strong> methods: <strong>auth::check(), auth::atemp(), auth:login(),...</strong>
If I don't use Model App\Models\Users::class, but use <strong>'driver' => 'database'</strong>, then how can I use some <strong>auth</strong> What about the function for authorization? </p>