2011-10-05 18:32:48 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
return array(
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
2012-05-01 11:33:10 -05:00
|
|
|
| Default Authentication Driver
|
2011-10-05 18:32:48 -05:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
2012-05-01 11:33:10 -05:00
|
|
|
| Laravel uses a flexible driver-based system to handle authentication.
|
|
|
|
|
| You are free to register your own drivers using the Auth::extend
|
|
|
|
|
| method. Of course, a few great drivers are provided out of
|
|
|
|
|
| box to handle basic authentication simply and easily.
|
2011-10-05 18:32:48 -05:00
|
|
|
|
|
2012-05-01 11:33:10 -05:00
|
|
|
| Drivers: 'fluent', 'eloquent'.
|
2011-10-05 18:32:48 -05:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2012-05-01 11:33:10 -05:00
|
|
|
'driver' => 'eloquent',
|
2011-10-05 18:32:48 -05:00
|
|
|
|
2012-05-01 13:12:32 -05:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Authentication Username
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Here you may specify the database column that should be considered the
|
2012-05-01 13:16:53 -05:00
|
|
|
| "username" for your users. Typically, this will either be "username"
|
2012-05-01 13:12:32 -05:00
|
|
|
| or "email". Of course, you're free to change the value to anything.
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'username' => 'email',
|
|
|
|
|
|
2012-05-23 22:47:18 -05:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Authentication Password
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
| Here you may specify the database column that should be considered the
|
2012-06-03 19:52:26 -05:00
|
|
|
| "password" for your users. Typically, this will be "password" but,
|
|
|
|
|
| again, you're free to change the value to anything you see fit.
|
2012-05-23 22:47:18 -05:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
'password' => 'password',
|
|
|
|
|
|
2011-10-05 18:32:48 -05:00
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
2012-05-01 11:33:10 -05:00
|
|
|
| Authentication Model
|
2011-10-05 18:32:48 -05:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
2012-05-01 11:33:10 -05:00
|
|
|
| When using the "eloquent" authentication driver, you may specify the
|
|
|
|
|
| model that should be considered the "User" model. This model will
|
|
|
|
|
| be used to authenticate and load the users of your application.
|
2011-10-05 18:32:48 -05:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2012-05-01 11:33:10 -05:00
|
|
|
'model' => 'User',
|
2012-02-01 08:52:57 -06:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|--------------------------------------------------------------------------
|
2012-05-01 11:33:10 -05:00
|
|
|
| Authentication Table
|
2012-02-01 08:52:57 -06:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
2012-05-01 11:33:10 -05:00
|
|
|
| When using the "fluent" authentication driver, the database table used
|
|
|
|
|
| to load users may be specified here. This table will be used in by
|
|
|
|
|
| the fluent query builder to authenticate and load your users.
|
2012-02-01 08:52:57 -06:00
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
2012-05-01 11:33:10 -05:00
|
|
|
'table' => 'users',
|
2011-10-05 18:32:48 -05:00
|
|
|
|
2011-08-22 22:19:50 -05:00
|
|
|
);
|