auth.php 2.22 KB
Newer Older
1 2 3 4 5 6
<?php

return array(

	/*
	|--------------------------------------------------------------------------
7
	| Default Authentication Driver
8 9
	|--------------------------------------------------------------------------
	|
10 11 12 13
	| 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.
14
	|
15
	| Drivers: 'fluent', 'eloquent'.
16 17 18
	|
	*/

19
	'driver' => 'eloquent',
20 21 22

	/*
	|--------------------------------------------------------------------------
23 24 25 26
	| Authentication Username
	|--------------------------------------------------------------------------
	|
	| Here you may specify the database column that should be considered the
Taylor Otwell committed
27
	| "username" for your users. Typically, this will either be "username"
28 29 30 31 32 33 34 35
	| or "email". Of course, you're free to change the value to anything.
	|
	*/

	'username' => 'email',

	/*
	|--------------------------------------------------------------------------
36 37 38 39
	| Authentication Password
	|--------------------------------------------------------------------------
	|
	| Here you may specify the database column that should be considered the
Taylor Otwell committed
40 41
	| "password" for your users. Typically, this will be "password" but, 
	| again, you're free to change the value to anything you see fit.
42 43 44 45 46 47 48
	|
	*/

	'password' => 'password',

	/*
	|--------------------------------------------------------------------------
49
	| Authentication Model
50 51
	|--------------------------------------------------------------------------
	|
52 53 54
	| 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.
55 56 57
	|
	*/

58
	'model' => 'User',
59 60 61

	/*
	|--------------------------------------------------------------------------
62
	| Authentication Table
63 64
	|--------------------------------------------------------------------------
	|
65 66 67
	| 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.
68 69 70
	|
	*/

71
	'table' => 'users',
72

73
);