entrust.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. /**
  3. * This file is part of Entrust,
  4. * a role & permission management solution for Laravel.
  5. *
  6. * @license MIT
  7. * @package Zizaco\Entrust
  8. */
  9. return [
  10. /*
  11. |--------------------------------------------------------------------------
  12. | Entrust Role Model
  13. |--------------------------------------------------------------------------
  14. |
  15. | This is the Role model used by Entrust to create correct relations. Update
  16. | the role if it is in a different namespace.
  17. |
  18. */
  19. 'role' => 'App\Models\Role',
  20. /*
  21. |--------------------------------------------------------------------------
  22. | Entrust Roles Table
  23. |--------------------------------------------------------------------------
  24. |
  25. | This is the roles table used by Entrust to save roles to the database.
  26. |
  27. */
  28. 'roles_table' => 'roles',
  29. /*
  30. |--------------------------------------------------------------------------
  31. | Entrust Permission Model
  32. |--------------------------------------------------------------------------
  33. |
  34. | This is the Permission model used by Entrust to create correct relations.
  35. | Update the permission if it is in a different namespace.
  36. |
  37. */
  38. 'permission' => 'App\Models\Permission',
  39. /*
  40. |--------------------------------------------------------------------------
  41. | Entrust Permissions Table
  42. |--------------------------------------------------------------------------
  43. |
  44. | This is the permissions table used by Entrust to save permissions to the
  45. | database.
  46. |
  47. */
  48. 'permissions_table' => 'permissions',
  49. /*
  50. |--------------------------------------------------------------------------
  51. | Entrust permission_role Table
  52. |--------------------------------------------------------------------------
  53. |
  54. | This is the permission_role table used by Entrust to save relationship
  55. | between permissions and roles to the database.
  56. |
  57. */
  58. 'permission_role_table' => 'permission_role',
  59. /*
  60. |--------------------------------------------------------------------------
  61. | Entrust role_user Table
  62. |--------------------------------------------------------------------------
  63. |
  64. | This is the role_user table used by Entrust to save assigned roles to the
  65. | database.
  66. |
  67. */
  68. 'role_user_table' => 'role_user',
  69. /*
  70. |--------------------------------------------------------------------------
  71. | User Foreign key on Entrust's role_user Table (Pivot)
  72. |--------------------------------------------------------------------------
  73. */
  74. 'user_foreign_key' => 'user_id',
  75. /*
  76. |--------------------------------------------------------------------------
  77. | Role Foreign key on Entrust's role_user Table (Pivot)
  78. |--------------------------------------------------------------------------
  79. */
  80. 'role_foreign_key' => 'role_id',
  81. ];