@@ -32,9 +32,9 @@ |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | // public function restoring(Model $result) { |
35 | - // cache()->forget('scripts'); |
|
36 | - // } |
|
37 | - // public function restored(Model $result) { |
|
38 | - // cache()->forget('scripts'); |
|
39 | - // } |
|
35 | + // cache()->forget('scripts'); |
|
36 | + // } |
|
37 | + // public function restored(Model $result) { |
|
38 | + // cache()->forget('scripts'); |
|
39 | + // } |
|
40 | 40 | } |
@@ -63,9 +63,9 @@ |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | // public function destroy(User $user, Users $section, User $item) { |
66 | - // if ($user->isAdmin()) { |
|
67 | - // return true; |
|
68 | - // } |
|
69 | - // return false; |
|
70 | - // } |
|
66 | + // if ($user->isAdmin()) { |
|
67 | + // return true; |
|
68 | + // } |
|
69 | + // return false; |
|
70 | + // } |
|
71 | 71 | } |
@@ -22,13 +22,13 @@ |
||
22 | 22 | public function creators() |
23 | 23 | { |
24 | 24 | return $this->belongsTo(User::class, 'created_by', 'id') |
25 | - ->withDefault(['name' => '-']); |
|
25 | + ->withDefault(['name' => '-']); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | public function editors() |
29 | 29 | { |
30 | 30 | return $this->belongsTo(User::class, 'modifed_by', 'id') |
31 | - ->withDefault(['name' => '-']); |
|
31 | + ->withDefault(['name' => '-']); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | //observers |
@@ -52,8 +52,8 @@ discard block |
||
52 | 52 | protected function mapWebRoutes() |
53 | 53 | { |
54 | 54 | Route::middleware('web') |
55 | - ->namespace($this->namespace) |
|
56 | - ->group(base_path('routes/web.php')); |
|
55 | + ->namespace($this->namespace) |
|
56 | + ->group(base_path('routes/web.php')); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
@@ -66,8 +66,8 @@ discard block |
||
66 | 66 | protected function mapApiRoutes() |
67 | 67 | { |
68 | 68 | Route::prefix('api') |
69 | - ->middleware('api') |
|
70 | - ->namespace($this->namespace) |
|
71 | - ->group(base_path('routes/api.php')); |
|
69 | + ->middleware('api') |
|
70 | + ->namespace($this->namespace) |
|
71 | + ->group(base_path('routes/api.php')); |
|
72 | 72 | } |
73 | 73 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | cache()->flush(); |
15 | 15 | |
16 | 16 | return redirect() |
17 | - ->back() |
|
18 | - ->with(['success_message' => __('api.admin.cache_clear')]); |
|
17 | + ->back() |
|
18 | + ->with(['success_message' => __('api.admin.cache_clear')]); |
|
19 | 19 | } |
20 | 20 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | public function __construct() |
21 | 21 | { |
22 | 22 | $this->middleware('auth') |
23 | - ->only(['logout_get', 'logout']); |
|
23 | + ->only(['logout_get', 'logout']); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | public function robot() |
@@ -27,10 +27,10 @@ |
||
27 | 27 | ]; |
28 | 28 | |
29 | 29 | $result = $this->startConditions() |
30 | - ->active() |
|
31 | - ->select($columns) |
|
32 | - ->toBase() |
|
33 | - ->get(); |
|
30 | + ->active() |
|
31 | + ->select($columns) |
|
32 | + ->toBase() |
|
33 | + ->get(); |
|
34 | 34 | |
35 | 35 | $result = $result->groupBy('top'); |
36 | 36 | // dd($result); |
@@ -26,8 +26,8 @@ |
||
26 | 26 | ]; |
27 | 27 | |
28 | 28 | $result = $this->startConditions() |
29 | - ->select($columns) |
|
30 | - ->get(); |
|
29 | + ->select($columns) |
|
30 | + ->get(); |
|
31 | 31 | |
32 | 32 | $setting = $result->mapWithKeys(function ($item) { |
33 | 33 | return [$item['name'] => $item['value']]; |
@@ -35,13 +35,13 @@ |
||
35 | 35 | 'priority' => 5000, |
36 | 36 | 'pages' => [ |
37 | 37 | (new Page(\App\Setting::class)) |
38 | - ->setPriority(100), |
|
38 | + ->setPriority(100), |
|
39 | 39 | (new Page(\App\Models\Script::class)) |
40 | - ->setPriority(800), |
|
40 | + ->setPriority(800), |
|
41 | 41 | (new Page(\App\User::class)) |
42 | - ->setPriority(900), |
|
42 | + ->setPriority(900), |
|
43 | 43 | (new Page(\App\Role::class)) |
44 | - ->setPriority(1000), |
|
44 | + ->setPriority(1000), |
|
45 | 45 | ], |
46 | 46 | ], |
47 | 47 |