auth.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 "usenrame"
  24. | or "email". Of course, you're free to change the value to anything.
  25. |
  26. */
  27. 'username' => 'email',
  28. /*
  29. |--------------------------------------------------------------------------
  30. | Authentication Model
  31. |--------------------------------------------------------------------------
  32. |
  33. | When using the "eloquent" authentication driver, you may specify the
  34. | model that should be considered the "User" model. This model will
  35. | be used to authenticate and load the users of your application.
  36. |
  37. */
  38. 'model' => 'User',
  39. /*
  40. |--------------------------------------------------------------------------
  41. | Authentication Table
  42. |--------------------------------------------------------------------------
  43. |
  44. | When using the "fluent" authentication driver, the database table used
  45. | to load users may be specified here. This table will be used in by
  46. | the fluent query builder to authenticate and load your users.
  47. |
  48. */
  49. 'table' => 'users',
  50. );