Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
ff35b10a
Commit
ff35b10a
authored
Dec 04, 2015
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
working on config
parent
b0160f5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
27 deletions
+35
-27
auth.php
config/auth.php
+35
-27
No files found.
config/auth.php
View file @
ff35b10a
...
...
@@ -4,31 +4,41 @@ return [
/*
|--------------------------------------------------------------------------
| Authentication D
river
s
| Authentication D
efault
s
|--------------------------------------------------------------------------
|
|
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
.
|
This option controls the default authentication "guard" and password
|
reset options for your application. You may change these defaults
|
as required, but they're a perfect start for most applications
.
|
| The "default_guard" option is the default driver which is used while
| utilizing the "Auth" facade within your application. But, you may
| access every other auth driver via the facade's "guard" method.
*/
'defaults'
=>
[
'guard'
=>
'web'
,
'passwords'
=>
'users'
,
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| here which uses "session" storage and the Eloquent user source.
|
| 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.
| All authentication drivers have a
user "source". This defines how the
| users are actually retrieved out of
your
database or other storage
| mechanism
s used by this
application to persist your user's data.
|
| Supported: "session"
|
*/
'default_guard'
=>
'web'
,
'guards'
=>
[
'web'
=>
[
'driver'
=>
'session'
,
'
provider'
=>
'eloquent
'
,
'
source'
=>
'users
'
,
],
// 'api' => [
...
...
@@ -38,19 +48,19 @@ return [
/*
|--------------------------------------------------------------------------
| User
Provider
s
| User
Source
s
|--------------------------------------------------------------------------
|
| All authentication drivers have a
"provider". A provider defines how
| users are actually retrieved out of
the
database or other storage
| mechanisms used by th
e
application to persist your user's data.
| All authentication drivers have a
user "source". This defines how the
| users are actually retrieved out of
your
database or other storage
| mechanisms used by th
is
application to persist your user's data.
|
| Supported: "database", "eloquent"
|
*/
'
provider
s'
=>
[
'
eloquent
'
=>
[
'
source
s'
=>
[
'
users
'
=>
[
'driver'
=>
'eloquent'
,
'model'
=>
App\User
::
class
,
],
...
...
@@ -63,16 +73,16 @@ return [
/*
|--------------------------------------------------------------------------
|
Password Reset
s
|
Resetting Password
s
|--------------------------------------------------------------------------
|
| 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
| that is your password reset e-mail. You
may
also set the name of the
| table that maintains all of the reset tokens for your application.
|
| Of course, you may define multiple password resetters each with a their
| own storage settings and user providers. However, for most apps this
|
default configuration of using Eloquent is
perfect out of the box.
|
simple configuration with Eloquent is just
perfect out of the box.
|
| The expire time is the number of minutes that the reset token should be
| considered valid. This security feature keeps tokens short-lived so
...
...
@@ -80,11 +90,9 @@ return [
|
*/
'default_resetter'
=>
'default'
,
'resetters'
=>
[
'default'
=>
[
'provider'
=>
'eloquent'
,
'passwords'
=>
[
'users'
=>
[
'source'
=>
'users'
,
'email'
=>
'emails.password'
,
'table'
=>
'password_resets'
,
'expire'
=>
60
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment