auth.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. return array(
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Authentication Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | Laravel uses a flexible driver-based system to handle authentication.
  9. | You are free to register your own drivers using the Auth::extend
  10. | method. Of course, a few great drivers are provided out of
  11. | box to handle basic authentication simply and easily.
  12. |
  13. | Drivers: 'fluent', 'eloquent'.
  14. |
  15. */
  16. 'driver' => 'eloquent',
  17. /*
  18. |--------------------------------------------------------------------------
  19. | Authentication Username
  20. |--------------------------------------------------------------------------
  21. |
  22. | Here you may specify the database column that should be considered the
  23. | "username" for your users. Typically, this will either be "username"
  24. | or "email". Of course, you're free to change the value to anything.
  25. |
  26. */
  27. 'username' => 'email',
  28. /*
  29. |--------------------------------------------------------------------------
  30. | Authentication Password
  31. |--------------------------------------------------------------------------
  32. |
  33. | Here you may specify the database column that should be considered the
  34. | "password" for your users. Typically, this will be "password" but,
  35. | again, you're free to change the value to anything you see fit.
  36. |
  37. */
  38. 'password' => 'password',
  39. /*
  40. |--------------------------------------------------------------------------
  41. | Authentication Model
  42. |--------------------------------------------------------------------------
  43. |
  44. | When using the "eloquent" authentication driver, you may specify the
  45. | model that should be considered the "User" model. This model will
  46. | be used to authenticate and load the users of your application.
  47. |
  48. */
  49. 'model' => 'User',
  50. /*
  51. |--------------------------------------------------------------------------
  52. | Authentication Table
  53. |--------------------------------------------------------------------------
  54. |
  55. | When using the "fluent" authentication driver, the database table used
  56. | to load users may be specified here. This table will be used in by
  57. | the fluent query builder to authenticate and load your users.
  58. |
  59. */
  60. 'table' => 'users',
  61. );