@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /* |
|
5 | + /* |
|
6 | 6 | |-------------------------------------------------------------------------- |
7 | 7 | | Pagination Language Lines |
8 | 8 | |-------------------------------------------------------------------------- |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | - 'previous' => '« السابق', |
|
17 | - 'next' => 'التالي »', |
|
16 | + 'previous' => '« السابق', |
|
17 | + 'next' => 'التالي »', |
|
18 | 18 | |
19 | 19 | ]; |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /* |
|
5 | + /* |
|
6 | 6 | |-------------------------------------------------------------------------- |
7 | 7 | | Authentication Language Lines |
8 | 8 | |-------------------------------------------------------------------------- |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | - 'failed' => 'بيانات الاعتماد هذه غير متطابقة مع البيانات المسجلة لدينا.', |
|
17 | - 'throttle' => 'عدد كبير جدا من محاولات الدخول. يرجى المحاولة مرة أخرى بعد :seconds ثانية.', |
|
16 | + 'failed' => 'بيانات الاعتماد هذه غير متطابقة مع البيانات المسجلة لدينا.', |
|
17 | + 'throttle' => 'عدد كبير جدا من محاولات الدخول. يرجى المحاولة مرة أخرى بعد :seconds ثانية.', |
|
18 | 18 | |
19 | 19 | ]; |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /* |
|
5 | + /* |
|
6 | 6 | |-------------------------------------------------------------------------- |
7 | 7 | | Password Reminder Language Lines |
8 | 8 | |-------------------------------------------------------------------------- |
@@ -13,10 +13,10 @@ discard block |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | - 'password' => 'يجب أن لا يقل طول كلمة السر عن ستة أحرف، كما يجب أن تتطابق مع حقل التأكيد', |
|
17 | - 'reset' => 'تمت إعادة تعيين كلمة السر', |
|
18 | - 'sent' => 'تم إرسال تفاصيل استعادة كلمة السر الخاصة بك إلى بريدك الإلكتروني', |
|
19 | - 'token' => '.رمز استعادة كلمة السر الذي أدخلته غير صحيح', |
|
20 | - 'user' => 'لم يتم العثور على أيّ حسابٍ بهذا العنوان الإلكتروني', |
|
16 | + 'password' => 'يجب أن لا يقل طول كلمة السر عن ستة أحرف، كما يجب أن تتطابق مع حقل التأكيد', |
|
17 | + 'reset' => 'تمت إعادة تعيين كلمة السر', |
|
18 | + 'sent' => 'تم إرسال تفاصيل استعادة كلمة السر الخاصة بك إلى بريدك الإلكتروني', |
|
19 | + 'token' => '.رمز استعادة كلمة السر الذي أدخلته غير صحيح', |
|
20 | + 'user' => 'لم يتم العثور على أيّ حسابٍ بهذا العنوان الإلكتروني', |
|
21 | 21 | |
22 | 22 | ]; |
@@ -8,31 +8,31 @@ |
||
8 | 8 | |
9 | 9 | class AuthServiceProvider extends ServiceProvider |
10 | 10 | { |
11 | - /** |
|
12 | - * The policy mappings for the application. |
|
13 | - * |
|
14 | - * @var array |
|
15 | - */ |
|
16 | - protected $policies = [ |
|
17 | - 'App\Model' => 'App\Policies\ModelPolicy', |
|
18 | - ]; |
|
11 | + /** |
|
12 | + * The policy mappings for the application. |
|
13 | + * |
|
14 | + * @var array |
|
15 | + */ |
|
16 | + protected $policies = [ |
|
17 | + 'App\Model' => 'App\Policies\ModelPolicy', |
|
18 | + ]; |
|
19 | 19 | |
20 | - /** |
|
21 | - * Register any authentication / authorization services. |
|
22 | - * |
|
23 | - * @return void |
|
24 | - */ |
|
25 | - public function boot() |
|
26 | - { |
|
27 | - $this->registerPolicies(); |
|
20 | + /** |
|
21 | + * Register any authentication / authorization services. |
|
22 | + * |
|
23 | + * @return void |
|
24 | + */ |
|
25 | + public function boot() |
|
26 | + { |
|
27 | + $this->registerPolicies(); |
|
28 | 28 | |
29 | - Passport::routes(function ($router) { |
|
30 | - $router->forAuthorization(); |
|
31 | - $router->forAccessTokens(); |
|
32 | - $router->forPersonalAccessTokens(); |
|
33 | - $router->forTransientTokens(); |
|
34 | - }); |
|
35 | - Passport::tokensExpireIn(\Carbon\Carbon::now()->addMinutes(10)); |
|
36 | - Passport::refreshTokensExpireIn(\Carbon\Carbon::now()->addDays(10)); |
|
37 | - } |
|
29 | + Passport::routes(function ($router) { |
|
30 | + $router->forAuthorization(); |
|
31 | + $router->forAccessTokens(); |
|
32 | + $router->forPersonalAccessTokens(); |
|
33 | + $router->forTransientTokens(); |
|
34 | + }); |
|
35 | + Passport::tokensExpireIn(\Carbon\Carbon::now()->addMinutes(10)); |
|
36 | + Passport::refreshTokensExpireIn(\Carbon\Carbon::now()->addDays(10)); |
|
37 | + } |
|
38 | 38 | } |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $this->registerPolicies(); |
28 | 28 | |
29 | - Passport::routes(function ($router) { |
|
29 | + Passport::routes(function($router) { |
|
30 | 30 | $router->forAuthorization(); |
31 | 31 | $router->forAccessTokens(); |
32 | 32 | $router->forPersonalAccessTokens(); |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /* |
|
5 | + /* |
|
6 | 6 | |-------------------------------------------------------------------------- |
7 | 7 | | Authentication Defaults |
8 | 8 | |-------------------------------------------------------------------------- |
@@ -13,12 +13,12 @@ discard block |
||
13 | 13 | | |
14 | 14 | */ |
15 | 15 | |
16 | - 'defaults' => [ |
|
17 | - 'guard' => 'web', |
|
18 | - 'passwords' => 'users', |
|
19 | - ], |
|
16 | + 'defaults' => [ |
|
17 | + 'guard' => 'web', |
|
18 | + 'passwords' => 'users', |
|
19 | + ], |
|
20 | 20 | |
21 | - /* |
|
21 | + /* |
|
22 | 22 | |-------------------------------------------------------------------------- |
23 | 23 | | Authentication Guards |
24 | 24 | |-------------------------------------------------------------------------- |
@@ -35,19 +35,19 @@ discard block |
||
35 | 35 | | |
36 | 36 | */ |
37 | 37 | |
38 | - 'guards' => [ |
|
39 | - 'web' => [ |
|
40 | - 'driver' => 'session', |
|
41 | - 'provider' => 'users', |
|
42 | - ], |
|
38 | + 'guards' => [ |
|
39 | + 'web' => [ |
|
40 | + 'driver' => 'session', |
|
41 | + 'provider' => 'users', |
|
42 | + ], |
|
43 | 43 | |
44 | - 'api' => [ |
|
45 | - 'driver' => 'passport', |
|
46 | - 'provider' => 'users', |
|
47 | - ], |
|
48 | - ], |
|
44 | + 'api' => [ |
|
45 | + 'driver' => 'passport', |
|
46 | + 'provider' => 'users', |
|
47 | + ], |
|
48 | + ], |
|
49 | 49 | |
50 | - /* |
|
50 | + /* |
|
51 | 51 | |-------------------------------------------------------------------------- |
52 | 52 | | User Providers |
53 | 53 | |-------------------------------------------------------------------------- |
@@ -64,19 +64,19 @@ discard block |
||
64 | 64 | | |
65 | 65 | */ |
66 | 66 | |
67 | - 'providers' => [ |
|
68 | - 'users' => [ |
|
69 | - 'driver' => 'eloquent', |
|
70 | - 'model' => App\Modules\Acl\AclUser::class, |
|
71 | - ], |
|
67 | + 'providers' => [ |
|
68 | + 'users' => [ |
|
69 | + 'driver' => 'eloquent', |
|
70 | + 'model' => App\Modules\Acl\AclUser::class, |
|
71 | + ], |
|
72 | 72 | |
73 | - // 'users' => [ |
|
74 | - // 'driver' => 'database', |
|
75 | - // 'table' => 'users', |
|
76 | - // ], |
|
77 | - ], |
|
73 | + // 'users' => [ |
|
74 | + // 'driver' => 'database', |
|
75 | + // 'table' => 'users', |
|
76 | + // ], |
|
77 | + ], |
|
78 | 78 | |
79 | - /* |
|
79 | + /* |
|
80 | 80 | |-------------------------------------------------------------------------- |
81 | 81 | | Resetting Passwords |
82 | 82 | |-------------------------------------------------------------------------- |
@@ -91,12 +91,12 @@ discard block |
||
91 | 91 | | |
92 | 92 | */ |
93 | 93 | |
94 | - 'passwords' => [ |
|
95 | - 'users' => [ |
|
96 | - 'provider' => 'users', |
|
97 | - 'table' => 'password_resets', |
|
98 | - 'expire' => 60, |
|
99 | - ], |
|
100 | - ], |
|
94 | + 'passwords' => [ |
|
95 | + 'users' => [ |
|
96 | + 'provider' => 'users', |
|
97 | + 'table' => 'password_resets', |
|
98 | + 'expire' => 60, |
|
99 | + ], |
|
100 | + ], |
|
101 | 101 | |
102 | 102 | ]; |
@@ -7,15 +7,15 @@ |
||
7 | 7 | |
8 | 8 | class BroadcastServiceProvider extends ServiceProvider |
9 | 9 | { |
10 | - /** |
|
11 | - * Bootstrap any application services. |
|
12 | - * |
|
13 | - * @return void |
|
14 | - */ |
|
15 | - public function boot() |
|
16 | - { |
|
17 | - Broadcast::routes(['middleware' => ['auth:api']]); |
|
10 | + /** |
|
11 | + * Bootstrap any application services. |
|
12 | + * |
|
13 | + * @return void |
|
14 | + */ |
|
15 | + public function boot() |
|
16 | + { |
|
17 | + Broadcast::routes(['middleware' => ['auth:api']]); |
|
18 | 18 | |
19 | - require base_path('routes/channels.php'); |
|
20 | - } |
|
19 | + require base_path('routes/channels.php'); |
|
20 | + } |
|
21 | 21 | } |
@@ -9,37 +9,37 @@ |
||
9 | 9 | |
10 | 10 | class Kernel extends ConsoleKernel |
11 | 11 | { |
12 | - /** |
|
13 | - * The Artisan commands provided by your application. |
|
14 | - * |
|
15 | - * @var array |
|
16 | - */ |
|
17 | - protected $commands = [ |
|
18 | - GenerateDoc::class, |
|
19 | - MakeNotificationsCommand::class |
|
20 | - ]; |
|
12 | + /** |
|
13 | + * The Artisan commands provided by your application. |
|
14 | + * |
|
15 | + * @var array |
|
16 | + */ |
|
17 | + protected $commands = [ |
|
18 | + GenerateDoc::class, |
|
19 | + MakeNotificationsCommand::class |
|
20 | + ]; |
|
21 | 21 | |
22 | - /** |
|
23 | - * Define the application's command schedule. |
|
24 | - * |
|
25 | - * @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
26 | - * @return void |
|
27 | - */ |
|
28 | - protected function schedule(Schedule $schedule) |
|
29 | - { |
|
30 | - // $schedule->command('inspire') |
|
31 | - // ->hourly(); |
|
32 | - } |
|
22 | + /** |
|
23 | + * Define the application's command schedule. |
|
24 | + * |
|
25 | + * @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
26 | + * @return void |
|
27 | + */ |
|
28 | + protected function schedule(Schedule $schedule) |
|
29 | + { |
|
30 | + // $schedule->command('inspire') |
|
31 | + // ->hourly(); |
|
32 | + } |
|
33 | 33 | |
34 | - /** |
|
35 | - * Register the commands for the application. |
|
36 | - * |
|
37 | - * @return void |
|
38 | - */ |
|
39 | - protected function commands() |
|
40 | - { |
|
41 | - $this->load(__DIR__.'/Commands'); |
|
34 | + /** |
|
35 | + * Register the commands for the application. |
|
36 | + * |
|
37 | + * @return void |
|
38 | + */ |
|
39 | + protected function commands() |
|
40 | + { |
|
41 | + $this->load(__DIR__.'/Commands'); |
|
42 | 42 | |
43 | - require base_path('routes/console.php'); |
|
44 | - } |
|
43 | + require base_path('routes/console.php'); |
|
44 | + } |
|
45 | 45 | } |
@@ -2,7 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | return [ |
4 | 4 | |
5 | - /* |
|
5 | + /* |
|
6 | 6 | |-------------------------------------------------------------------------- |
7 | 7 | | Disable Confirm Email |
8 | 8 | |-------------------------------------------------------------------------- |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | | |
12 | 12 | */ |
13 | 13 | |
14 | - 'disable_confirm_email' => env('DISABLE_CONFIRM_EMAIL', false), |
|
14 | + 'disable_confirm_email' => env('DISABLE_CONFIRM_EMAIL', false), |
|
15 | 15 | |
16 | - /* |
|
16 | + /* |
|
17 | 17 | |-------------------------------------------------------------------------- |
18 | 18 | | Confirm Email URL |
19 | 19 | |-------------------------------------------------------------------------- |
@@ -22,9 +22,9 @@ discard block |
||
22 | 22 | | |
23 | 23 | */ |
24 | 24 | |
25 | - 'confrim_email_url' => env('CONFIRM_EMAIL_URL'), |
|
25 | + 'confrim_email_url' => env('CONFIRM_EMAIL_URL'), |
|
26 | 26 | |
27 | - /* |
|
27 | + /* |
|
28 | 28 | |-------------------------------------------------------------------------- |
29 | 29 | | Reset Password URL |
30 | 30 | |-------------------------------------------------------------------------- |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | | |
34 | 34 | */ |
35 | 35 | |
36 | - 'reset_password_url' => env('RESET_PASSWORD_URL'), |
|
36 | + 'reset_password_url' => env('RESET_PASSWORD_URL'), |
|
37 | 37 | |
38 | - /* |
|
38 | + /* |
|
39 | 39 | |-------------------------------------------------------------------------- |
40 | 40 | | Passport Client Id |
41 | 41 | |-------------------------------------------------------------------------- |
@@ -44,9 +44,9 @@ discard block |
||
44 | 44 | | |
45 | 45 | */ |
46 | 46 | |
47 | - 'passport_client_id' => env('PASSWORD_CLIENT_ID'), |
|
47 | + 'passport_client_id' => env('PASSWORD_CLIENT_ID'), |
|
48 | 48 | |
49 | - /* |
|
49 | + /* |
|
50 | 50 | |-------------------------------------------------------------------------- |
51 | 51 | | Passport Client Secret |
52 | 52 | |-------------------------------------------------------------------------- |
@@ -55,9 +55,9 @@ discard block |
||
55 | 55 | | |
56 | 56 | */ |
57 | 57 | |
58 | - 'passport_client_secret' => env('PASSWORD_CLIENT_SECRET'), |
|
58 | + 'passport_client_secret' => env('PASSWORD_CLIENT_SECRET'), |
|
59 | 59 | |
60 | - /* |
|
60 | + /* |
|
61 | 61 | |-------------------------------------------------------------------------- |
62 | 62 | | Social Pass |
63 | 63 | |-------------------------------------------------------------------------- |
@@ -66,9 +66,9 @@ discard block |
||
66 | 66 | | |
67 | 67 | */ |
68 | 68 | |
69 | - 'social_pass' => env('SOCIAL_PASS', false), |
|
69 | + 'social_pass' => env('SOCIAL_PASS', false), |
|
70 | 70 | |
71 | - /* |
|
71 | + /* |
|
72 | 72 | |-------------------------------------------------------------------------- |
73 | 73 | | Relations Between Models |
74 | 74 | |-------------------------------------------------------------------------- |
@@ -77,88 +77,88 @@ discard block |
||
77 | 77 | | |
78 | 78 | */ |
79 | 79 | |
80 | - 'relations' => [ |
|
81 | - 'users' => [ |
|
82 | - 'list' => [], |
|
83 | - 'find' => [], |
|
84 | - 'findby' => [], |
|
85 | - 'paginate' => [], |
|
86 | - 'paginateby' => [], |
|
87 | - 'first' => [], |
|
88 | - 'search' => [], |
|
89 | - 'account' => [], |
|
90 | - 'group' => [], |
|
91 | - 'deleted' => [], |
|
92 | - ], |
|
93 | - 'permissions' => [ |
|
94 | - 'list' => [], |
|
95 | - 'find' => [], |
|
96 | - 'findby' => [], |
|
97 | - 'paginate' => [], |
|
98 | - 'paginateby' => [], |
|
99 | - 'first' => [], |
|
100 | - 'search' => [], |
|
101 | - 'deleted' => [], |
|
102 | - ], |
|
103 | - 'groups' => [ |
|
104 | - 'list' => [], |
|
105 | - 'find' => [], |
|
106 | - 'findby' => [], |
|
107 | - 'paginate' => [], |
|
108 | - 'paginateby' => [], |
|
109 | - 'first' => [], |
|
110 | - 'search' => [], |
|
111 | - 'deleted' => [], |
|
112 | - ], |
|
113 | - 'oauthClients' => [ |
|
114 | - 'list' => [], |
|
115 | - 'find' => [], |
|
116 | - 'findby' => [], |
|
117 | - 'paginate' => [], |
|
118 | - 'paginateby' => [], |
|
119 | - 'first' => [], |
|
120 | - 'search' => [], |
|
121 | - 'account' => [], |
|
122 | - 'group' => [], |
|
123 | - 'deleted' => [], |
|
124 | - ], |
|
125 | - 'notifications' => [ |
|
126 | - 'list' => [], |
|
127 | - 'unread' => [], |
|
128 | - ], |
|
129 | - 'pushNotificationDevices' => [ |
|
130 | - 'list' => [], |
|
131 | - 'find' => [], |
|
132 | - 'findby' => [], |
|
133 | - 'paginate' => [], |
|
134 | - 'paginateby' => [], |
|
135 | - 'first' => [], |
|
136 | - 'search' => [], |
|
137 | - 'deleted' => [], |
|
138 | - ], |
|
139 | - 'reports' => [ |
|
140 | - 'list' => [], |
|
141 | - 'find' => [], |
|
142 | - 'findby' => [], |
|
143 | - 'paginate' => [], |
|
144 | - 'paginateby' => [], |
|
145 | - 'first' => [], |
|
146 | - 'search' => [], |
|
147 | - 'deleted' => [], |
|
148 | - ], |
|
149 | - 'settings' => [ |
|
150 | - 'list' => [], |
|
151 | - 'find' => [], |
|
152 | - 'findby' => [], |
|
153 | - 'paginate' => [], |
|
154 | - 'paginateby' => [], |
|
155 | - 'first' => [], |
|
156 | - 'search' => [], |
|
157 | - 'deleted' => [], |
|
158 | - ] |
|
159 | - ], |
|
80 | + 'relations' => [ |
|
81 | + 'users' => [ |
|
82 | + 'list' => [], |
|
83 | + 'find' => [], |
|
84 | + 'findby' => [], |
|
85 | + 'paginate' => [], |
|
86 | + 'paginateby' => [], |
|
87 | + 'first' => [], |
|
88 | + 'search' => [], |
|
89 | + 'account' => [], |
|
90 | + 'group' => [], |
|
91 | + 'deleted' => [], |
|
92 | + ], |
|
93 | + 'permissions' => [ |
|
94 | + 'list' => [], |
|
95 | + 'find' => [], |
|
96 | + 'findby' => [], |
|
97 | + 'paginate' => [], |
|
98 | + 'paginateby' => [], |
|
99 | + 'first' => [], |
|
100 | + 'search' => [], |
|
101 | + 'deleted' => [], |
|
102 | + ], |
|
103 | + 'groups' => [ |
|
104 | + 'list' => [], |
|
105 | + 'find' => [], |
|
106 | + 'findby' => [], |
|
107 | + 'paginate' => [], |
|
108 | + 'paginateby' => [], |
|
109 | + 'first' => [], |
|
110 | + 'search' => [], |
|
111 | + 'deleted' => [], |
|
112 | + ], |
|
113 | + 'oauthClients' => [ |
|
114 | + 'list' => [], |
|
115 | + 'find' => [], |
|
116 | + 'findby' => [], |
|
117 | + 'paginate' => [], |
|
118 | + 'paginateby' => [], |
|
119 | + 'first' => [], |
|
120 | + 'search' => [], |
|
121 | + 'account' => [], |
|
122 | + 'group' => [], |
|
123 | + 'deleted' => [], |
|
124 | + ], |
|
125 | + 'notifications' => [ |
|
126 | + 'list' => [], |
|
127 | + 'unread' => [], |
|
128 | + ], |
|
129 | + 'pushNotificationDevices' => [ |
|
130 | + 'list' => [], |
|
131 | + 'find' => [], |
|
132 | + 'findby' => [], |
|
133 | + 'paginate' => [], |
|
134 | + 'paginateby' => [], |
|
135 | + 'first' => [], |
|
136 | + 'search' => [], |
|
137 | + 'deleted' => [], |
|
138 | + ], |
|
139 | + 'reports' => [ |
|
140 | + 'list' => [], |
|
141 | + 'find' => [], |
|
142 | + 'findby' => [], |
|
143 | + 'paginate' => [], |
|
144 | + 'paginateby' => [], |
|
145 | + 'first' => [], |
|
146 | + 'search' => [], |
|
147 | + 'deleted' => [], |
|
148 | + ], |
|
149 | + 'settings' => [ |
|
150 | + 'list' => [], |
|
151 | + 'find' => [], |
|
152 | + 'findby' => [], |
|
153 | + 'paginate' => [], |
|
154 | + 'paginateby' => [], |
|
155 | + 'first' => [], |
|
156 | + 'search' => [], |
|
157 | + 'deleted' => [], |
|
158 | + ] |
|
159 | + ], |
|
160 | 160 | |
161 | - /* |
|
161 | + /* |
|
162 | 162 | |-------------------------------------------------------------------------- |
163 | 163 | | Cache Configurations |
164 | 164 | |-------------------------------------------------------------------------- |
@@ -167,46 +167,46 @@ discard block |
||
167 | 167 | | |
168 | 168 | */ |
169 | 169 | |
170 | - 'cache_config' => [ |
|
171 | - 'oauthClients' => [ |
|
172 | - 'cache' => [ |
|
173 | - 'all', |
|
174 | - 'find', |
|
175 | - 'findBy', |
|
176 | - 'paginate', |
|
177 | - 'paginateBy', |
|
178 | - 'first', |
|
179 | - 'search', |
|
180 | - 'deleted' |
|
181 | - ], |
|
182 | - 'clear' => [ |
|
183 | - 'update' => ['oauthClients', 'users', 'groups'], |
|
184 | - 'save' => ['oauthClients', 'users', 'groups'], |
|
185 | - 'delete' => ['oauthClients', 'users', 'groups'], |
|
186 | - 'restore' => ['oauthClients', 'users', 'groups'], |
|
187 | - 'revoke' => ['oauthClients', 'users', 'groups'], |
|
188 | - 'ubRevoke' => ['oauthClients', 'users', 'groups'], |
|
189 | - 'regenerateSecret' => ['oauthClients', 'users', 'groups'], |
|
190 | - ], |
|
191 | - ], |
|
192 | - 'settings' => [ |
|
193 | - 'cache' => [ |
|
194 | - 'all', |
|
195 | - 'find', |
|
196 | - 'findBy', |
|
197 | - 'paginate', |
|
198 | - 'paginateBy', |
|
199 | - 'first', |
|
200 | - 'search', |
|
201 | - 'deleted' |
|
202 | - ], |
|
203 | - 'clear' => [ |
|
204 | - 'update' => ['settings'], |
|
205 | - 'save' => ['settings'], |
|
206 | - 'delete' => ['settings'], |
|
207 | - 'restore' => ['settings'], |
|
208 | - 'saveMany' => ['settings'], |
|
209 | - ] |
|
210 | - ] |
|
211 | - ] |
|
170 | + 'cache_config' => [ |
|
171 | + 'oauthClients' => [ |
|
172 | + 'cache' => [ |
|
173 | + 'all', |
|
174 | + 'find', |
|
175 | + 'findBy', |
|
176 | + 'paginate', |
|
177 | + 'paginateBy', |
|
178 | + 'first', |
|
179 | + 'search', |
|
180 | + 'deleted' |
|
181 | + ], |
|
182 | + 'clear' => [ |
|
183 | + 'update' => ['oauthClients', 'users', 'groups'], |
|
184 | + 'save' => ['oauthClients', 'users', 'groups'], |
|
185 | + 'delete' => ['oauthClients', 'users', 'groups'], |
|
186 | + 'restore' => ['oauthClients', 'users', 'groups'], |
|
187 | + 'revoke' => ['oauthClients', 'users', 'groups'], |
|
188 | + 'ubRevoke' => ['oauthClients', 'users', 'groups'], |
|
189 | + 'regenerateSecret' => ['oauthClients', 'users', 'groups'], |
|
190 | + ], |
|
191 | + ], |
|
192 | + 'settings' => [ |
|
193 | + 'cache' => [ |
|
194 | + 'all', |
|
195 | + 'find', |
|
196 | + 'findBy', |
|
197 | + 'paginate', |
|
198 | + 'paginateBy', |
|
199 | + 'first', |
|
200 | + 'search', |
|
201 | + 'deleted' |
|
202 | + ], |
|
203 | + 'clear' => [ |
|
204 | + 'update' => ['settings'], |
|
205 | + 'save' => ['settings'], |
|
206 | + 'delete' => ['settings'], |
|
207 | + 'restore' => ['settings'], |
|
208 | + 'saveMany' => ['settings'], |
|
209 | + ] |
|
210 | + ] |
|
211 | + ] |
|
212 | 212 | ]; |
@@ -6,23 +6,23 @@ |
||
6 | 6 | |
7 | 7 | class OauthClient extends Client |
8 | 8 | { |
9 | - protected $dates = ['created_at', 'updated_at']; |
|
10 | - protected $fillable = ['name', 'redirect', 'user_id', 'personal_access_client', 'password_client', 'revoked']; |
|
11 | - public $searchable = ['name']; |
|
9 | + protected $dates = ['created_at', 'updated_at']; |
|
10 | + protected $fillable = ['name', 'redirect', 'user_id', 'personal_access_client', 'password_client', 'revoked']; |
|
11 | + public $searchable = ['name']; |
|
12 | 12 | |
13 | - public function getCreatedAtAttribute($value) |
|
14 | - { |
|
15 | - return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString(); |
|
16 | - } |
|
13 | + public function getCreatedAtAttribute($value) |
|
14 | + { |
|
15 | + return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString(); |
|
16 | + } |
|
17 | 17 | |
18 | - public function getUpdatedAtAttribute($value) |
|
19 | - { |
|
20 | - return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString(); |
|
21 | - } |
|
18 | + public function getUpdatedAtAttribute($value) |
|
19 | + { |
|
20 | + return \Carbon\Carbon::parse($value)->tz(\Session::get('time-zone'))->toDateTimeString(); |
|
21 | + } |
|
22 | 22 | |
23 | - public static function boot() |
|
24 | - { |
|
25 | - parent::boot(); |
|
26 | - OauthClient::observe(\App::make('App\Modules\Acl\ModelObservers\OauthClientObserver')); |
|
27 | - } |
|
23 | + public static function boot() |
|
24 | + { |
|
25 | + parent::boot(); |
|
26 | + OauthClient::observe(\App::make('App\Modules\Acl\ModelObservers\OauthClientObserver')); |
|
27 | + } |
|
28 | 28 | } |