-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
impersonate.php
90 lines (83 loc) · 3.21 KB
/
impersonate.php
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
<?php
return [
/*
|--------------------------------------------------------------------------
| Impersonation Interface
|--------------------------------------------------------------------------
| You can override the value by setting enable to true or false instead of null.
|
*/
'enabled' => env('IMPERSONATE_ENABLED', true),
/*
|--------------------------------------------------------------------------
| Exclude Impersonate
|--------------------------------------------------------------------------
| You can provide an array of URI's that must be ignored (eg. 'api/*')
|
*/
'except' => [
'telescope*', 'horizon*', 'api/*',
],
/*
|--------------------------------------------------------------------------
| User Model
|--------------------------------------------------------------------------
|
| Path to the application User model. This will be used to retrieve the
| users displayed in the select dropdown.
|
| This must be an Eloquent Model instance.
|
*/
'model' => config('auth.providers.users.model'),
/*
|--------------------------------------------------------------------------
| Show Trashed Users
|--------------------------------------------------------------------------
|
| If you are using the SoftDeletes trait on your User model, you can
| set this to true to show trashed users in the select dropdown.
|
*/
'trashed' => false,
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| here which uses session storage and the Eloquent user provider.
|
| All authentication drivers have a user provider. This defines how the
| users are actually retrieved out of your database or other storage
| mechanisms used by this application to persist your user's data.
|
*/
'guard' => config('auth.defaults.guard'),
'interface' => [
/*
|--------------------------------------------------------------------------
| Interface Width
|--------------------------------------------------------------------------
|
| You are free to determine the required interface width.
| This is very useful for avoiding hard wraps on the interface.
|
*/
'width' => env('IMPERSONATE_WIDTH', '21rem'),
/*
|--------------------------------------------------------------------------
| Rate-limiting Requests
|--------------------------------------------------------------------------
|
| You can tell LaraPersonate to wait until the user has finished typing
| their search term before triggering the AJAX request.
|
| Simply use the delay configuration option to tell how long
| to wait after a user has stopped typing before sending the request
|
*/
'delay' => env('IMPERSONATE_DELAY', 300),
],
];