Answer the question
In order to leave comments, you need to log in
What are providers?
When deepening in Laravel, I stumble upon Providers everywhere, according to the logic, a provider is a service provider, which means that any piece of code can be called a provider that provides services ..
I got confused in the terminology.
Drivers vs Providers. Who cares ?
Provider is specified -> users I can't find this provider where should it be located ?
Where are Laravel's auth.php settings read from?
The auth.php section is kinda magical for me as a Laravel newbie.. Need some help from those who understand!
From Laravel: auth.php
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
'api' => [
'driver' => 'token',
'provider' => 'users',
],
],
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
Answer the question
In order to leave comments, you need to log in
Where are Laravel's auth.php settings read from?Nowhere, because
auth.php
this is the settings.Provider is specified -> users I can't find this provider where should it be located ?What exactly can't you do? Lower your eyes a few times lower and see
'users' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
you can not? Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question