|
| 1 | +<?php |
| 2 | + |
| 3 | +return [ |
| 4 | + |
| 5 | + 'models' => [ |
| 6 | + |
| 7 | + /* |
| 8 | + * When using the "HasRoles" trait from this package, we need to know which |
| 9 | + * Eloquent model should be used to retrieve your roles. Of course, it |
| 10 | + * is often just the "Role" model but you may use whatever you like. |
| 11 | + * |
| 12 | + * The model you want to use as a Role model needs to implement the |
| 13 | + * `Ribedesign\Authorisation\Contracts\Role` contract. |
| 14 | + */ |
| 15 | + |
| 16 | + 'role' => Ribedesign\Authorisation\Models\Role::class, |
| 17 | + |
| 18 | + /* |
| 19 | + * When using the "HasRoles" trait from this package, we need to know which |
| 20 | + * Eloquent model should be used to retrieve your permissions. Of course, it |
| 21 | + * is often just the "Permission" model but you may use whatever you like. |
| 22 | + * |
| 23 | + * The model you want to use as a Permission model needs to implement the |
| 24 | + * `Ribedesign\Authorisation\Contracts\Permission` contract. |
| 25 | + */ |
| 26 | + |
| 27 | + 'permission' => Ribedesign\Authorisation\Models\Permission::class, |
| 28 | + |
| 29 | + /* |
| 30 | + * When using the "HasRoles" trait from this package, we need to know which |
| 31 | + * Eloquent model should be used to retrieve your permissions. Of course, it |
| 32 | + * is often just the "Object" model but you may use whatever you like. |
| 33 | + * |
| 34 | + * The model you want to use as a Object model needs to implement the |
| 35 | + * `Ribedesign\Authorisation\Contracts\Object` contract. |
| 36 | + */ |
| 37 | + |
| 38 | + 'object' => Ribedesign\Authorisation\Models\Object::class, |
| 39 | + |
| 40 | + /* |
| 41 | + * When using the "HasRoles" trait from this package, we need to know which |
| 42 | + * Eloquent model should be used to retrieve your permissions. Of course, it |
| 43 | + * is often just the "Action" model but you may use whatever you like. |
| 44 | + * |
| 45 | + * The model you want to use as a Object model needs to implement the |
| 46 | + * `Ribedesign\Authorisation\Contracts\Action` contract. |
| 47 | + */ |
| 48 | + |
| 49 | + 'action' => Ribedesign\Authorisation\Models\Action::class, |
| 50 | + |
| 51 | + ], |
| 52 | + |
| 53 | + 'table_names' => [ |
| 54 | + |
| 55 | + /* |
| 56 | + * The table that your application uses for users. This table's model will |
| 57 | + * be using the "HasRoles" and "HasPermissions" traits. |
| 58 | + */ |
| 59 | + |
| 60 | + 'users' => 'users', |
| 61 | + |
| 62 | + /* |
| 63 | + * When using the "HasRoles" trait from this package, we need to know which |
| 64 | + * table should be used to retrieve your roles. We have chosen a basic |
| 65 | + * default value but you may easily change it to any table you like. |
| 66 | + */ |
| 67 | + |
| 68 | + 'roles' => 'roles', |
| 69 | + |
| 70 | + /* |
| 71 | + * When using the "HasRoles" trait from this package, we need to know which |
| 72 | + * table should be used to retrieve your permissions. We have chosen a basic |
| 73 | + * default value but you may easily change it to any table you like. |
| 74 | + */ |
| 75 | + |
| 76 | + 'permissions' => 'permissions', |
| 77 | + |
| 78 | + /* |
| 79 | + * When using the "HasRoles" trait from this package, we need to know which |
| 80 | + * table should be used to retrieve your objects. We have chosen a basic |
| 81 | + * default value but you may easily change it to any table you like. |
| 82 | + */ |
| 83 | + |
| 84 | + 'objects' => 'objects', |
| 85 | + |
| 86 | + /* |
| 87 | + * When using the "HasRoles" trait from this package, we need to know which |
| 88 | + * table should be used to retrieve your actions. We have chosen a basic |
| 89 | + * default value but you may easily change it to any table you like. |
| 90 | + */ |
| 91 | + |
| 92 | + 'actions' => 'actions', |
| 93 | + |
| 94 | + /* |
| 95 | + * When using the "HasRoles" trait from this package, we need to know which |
| 96 | + * table should be used to retrieve your users permissions. We have chosen a |
| 97 | + * basic default value but you may easily change it to any table you like. |
| 98 | + */ |
| 99 | + |
| 100 | + 'user_has_permissions' => 'user_has_permissions', |
| 101 | + |
| 102 | + /* |
| 103 | + * When using the "HasRoles" trait from this package, we need to know which |
| 104 | + * table should be used to retrieve your users roles. We have chosen a |
| 105 | + * basic default value but you may easily change it to any table you like. |
| 106 | + */ |
| 107 | + |
| 108 | + 'user_has_roles' => 'user_has_roles', |
| 109 | + |
| 110 | + /* |
| 111 | + * When using the "HasRoles" trait from this package, we need to know which |
| 112 | + * table should be used to retrieve your roles permissions. We have chosen a |
| 113 | + * basic default value but you may easily change it to any table you like. |
| 114 | + */ |
| 115 | + |
| 116 | + 'role_has_permissions' => 'role_has_permissions', |
| 117 | + ], |
| 118 | + |
| 119 | + 'foreign_keys' => [ |
| 120 | + |
| 121 | + /* |
| 122 | + * The name of the foreign key to the users table. |
| 123 | + */ |
| 124 | + 'users' => 'user_id', |
| 125 | + ], |
| 126 | +]; |
0 commit comments