Files
spa-api/config/auth.php

95 lines
2.9 KiB
PHP
Raw Normal View History

2013-01-11 15:14:07 -06:00
<?php
2014-08-24 14:03:58 -05:00
return [
2013-01-11 15:14:07 -06:00
2015-02-22 20:47:03 -06:00
/*
|--------------------------------------------------------------------------
2015-12-03 12:25:38 -06:00
| Authentication Drivers
2015-02-22 20:47:03 -06:00
|--------------------------------------------------------------------------
|
2015-12-03 12:25:38 -06:00
| Here you may define every authentication driver for your application.
| Of course, a default and working configuration is already defined
| here but you are free to define additional drivers when needed.
2015-02-22 20:47:03 -06:00
|
2015-12-03 17:10:09 -06:00
| The "default_guard" option is the default driver which is used while
2015-12-03 12:25:38 -06:00
| utilizing the "Auth" facade within your application. But, you may
| access every other auth driver via the facade's "guard" method.
2015-02-22 20:47:03 -06:00
|
2015-12-03 12:25:38 -06:00
| All authentication drivers have a "provider". A provider defines how
| users are actually retrieved out of the database or other storage
| mechanism used by your application to persist your user's data.
2015-02-22 20:47:03 -06:00
|
2015-12-03 12:25:38 -06:00
| Supported: "session"
2015-02-22 20:47:03 -06:00
|
*/
2013-01-11 15:14:07 -06:00
2015-12-03 17:10:09 -06:00
'default_guard' => 'web',
2015-12-03 12:25:38 -06:00
'guards' => [
2015-12-03 17:10:09 -06:00
'web' => [
2015-12-03 12:25:38 -06:00
'driver' => 'session',
'provider' => 'eloquent',
],
2015-12-03 17:10:09 -06:00
// 'api' => [
// ],
2015-12-03 12:25:38 -06:00
],
2013-01-11 15:14:07 -06:00
2015-02-22 20:47:03 -06:00
/*
|--------------------------------------------------------------------------
2015-12-03 12:25:38 -06:00
| User Providers
2015-02-22 20:47:03 -06:00
|--------------------------------------------------------------------------
|
2015-12-03 12:25:38 -06:00
| All authentication drivers have a "provider". A provider defines how
| users are actually retrieved out of the database or other storage
2015-12-03 17:10:09 -06:00
| mechanisms used by the application to persist your user's data.
2015-12-03 12:25:38 -06:00
|
| Supported: "database", "eloquent"
2015-02-22 20:47:03 -06:00
|
*/
2013-01-11 15:14:07 -06:00
2015-12-03 12:25:38 -06:00
'providers' => [
'eloquent' => [
'driver' => 'eloquent',
'model' => App\User::class,
],
2015-12-03 17:10:09 -06:00
// 'database' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
2015-12-03 12:25:38 -06:00
],
2013-01-11 15:14:07 -06:00
2015-02-22 20:47:03 -06:00
/*
|--------------------------------------------------------------------------
2015-12-03 17:10:09 -06:00
| Password Resets
2015-02-22 20:47:03 -06:00
|--------------------------------------------------------------------------
|
| Here you may set the options for resetting passwords including the view
| that is your password reset e-mail. You can also set the name of the
| table that maintains all of the reset tokens for your application.
|
2015-12-03 17:10:09 -06:00
| Of course, you may define multiple password resetters each with a their
2015-12-03 12:25:38 -06:00
| own storage settings and user providers. However, for most apps this
| default configuration of using Eloquent is perfect out of the box.
|
2015-02-22 20:47:03 -06:00
| The expire time is the number of minutes that the reset token should be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
*/
2013-01-30 22:42:27 -06:00
2015-12-03 17:10:09 -06:00
'default_resetter' => 'default',
2015-12-03 12:25:38 -06:00
2015-12-03 17:10:09 -06:00
'resetters' => [
2015-12-03 12:25:38 -06:00
'default' => [
'provider' => 'eloquent',
'email' => 'emails.password',
'table' => 'password_resets',
'expire' => 60,
],
2015-02-22 20:47:03 -06:00
],
2013-01-30 22:42:27 -06:00
2014-08-24 14:03:58 -05:00
];