access.php
3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
use App\Access\Model\Role\Role;
use App\Access\Model\Permission\Permission;
return [
/*
* Users table used to store users
*/
'users_table' => 'system_users',
/*
* Role model used by Access to create correct relations. Update the role if it is in a different namespace.
*/
'role' => Role::class,
/*
* Roles table used by Access to save roles to the database.
*/
'roles_table' => 'roles',
/*
* Permission model used by Access to create correct relations.
* Update the permission if it is in a different namespace.
*/
'permission' => Permission::class,
/*
* Permissions table used by Access to save permissions to the database.
*/
'permissions_table' => 'permissions',
/*
* permission_role table used by Access to save relationship between permissions and roles to the database.
*/
'permission_role_table' => 'permission_role',
/*
* role_user table used by Access to save assigned roles to the database.
*/
'role_user_table' => 'role_user',
/*
* Configurations for the user
*/
'users' => [
/*
* Whether or not public registration is on
*/
'registration' => env('ENABLE_REGISTRATION', true),
/*
* The role the user is assigned to when they sign up from the frontend, not namespaced
*/
'default_role' => 'User',
//'default_role' => 2,
/*
* Whether or not the user has to confirm their email when signing up
*/
'confirm_email' => true,
/*
* Whether or not the users email can be changed on the edit profile screen
*/
'change_email' => false,
/*
* Whether or not new users need to be approved by an administrator before logging in
* If this is set to true, then confirm_email is not in effect
*/
'requires_approval' => env('REQUIRES_APPROVAL', false),
/*
* Session Database Driver Only
* When active, a user can only have one session active at a time
* That is all other sessions for that user will be deleted when they log in
* (They can only be logged into one place at a time, all others will be logged out)
*/
'single_login' => true,
],
/*
* Configuration for roles
*/
'roles' => [
/*
* Whether a role must contain a permission or can be used standalone as a label
*/
'role_must_contain_permission' => true,
],
/*
* Socialite session variable name
* Contains the name of the currently logged in provider in the users session
* Makes it so social logins can not change passwords, etc.
*/
'socialite_session_name' => 'socialite_provider',
/*
* Application captcha specific settings
*/
'captcha' => [
/*
* Whether the registration captcha is on or off
*/
'registration' => env('REGISTRATION_CAPTCHA_STATUS', false),
],
];