@@ -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 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | |
138 | 138 | $nextChange = config('users.passExpires') != null ? Carbon::now()->addDays(config('users.passExpires')) : null; |
139 | 139 | |
140 | - // Update the password |
|
140 | + // Update the password |
|
141 | 141 | User::find($userData->user_id)->update( |
142 | 142 | [ |
143 | 143 | 'password' => bcrypt($request->newPass), |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | |
270 | 270 | $nextChange = isset($request->force_change) && $request->force_change == 'on' ? Carbon::now()->subDay() : null; |
271 | 271 | |
272 | - // Update the user data |
|
272 | + // Update the user data |
|
273 | 273 | User::find($id)->update( |
274 | 274 | [ |
275 | 275 | 'password' => bcrypt($request->password), |
@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | ->action('Click to View Link', |
33 | 33 | url(route('links.details', |
34 | 34 | [ |
35 | - 'id' => $this->details->link_id, |
|
36 | - 'name' => urlencode($this->details->link_name) |
|
35 | + 'id' => $this->details->link_id, |
|
36 | + 'name' => urlencode($this->details->link_name) |
|
37 | 37 | ]))); |
38 | 38 | } |
39 | 39 | |
@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | 'type' => 'warning', |
45 | 45 | 'message' => 'New File Uploaded to link - '.$this->details->link_name, |
46 | 46 | 'link' => url(route('links.details', |
47 | - [ |
|
47 | + [ |
|
48 | 48 | 'id' => $this->details->link_id, |
49 | - 'name' => urlencode($this->details->link_name) |
|
50 | - ])) |
|
49 | + 'name' => urlencode($this->details->link_name) |
|
50 | + ])) |
|
51 | 51 | ]; |
52 | 52 | } |
53 | 53 | } |
@@ -16,21 +16,21 @@ |
||
16 | 16 | */ |
17 | 17 | public function register() |
18 | 18 | { |
19 | - try |
|
20 | - { |
|
21 | - if(Schema::hasTable('settings')) |
|
22 | - { |
|
23 | - $settings = DB::table('settings')->get(); |
|
24 | - foreach($settings as $setting) |
|
25 | - { |
|
26 | - Config([$setting->key => $setting->value]); |
|
27 | - } |
|
28 | - } |
|
29 | - } |
|
30 | - catch(\Illuminate\Database\QueryException $e) |
|
31 | - { |
|
19 | + try |
|
20 | + { |
|
21 | + if(Schema::hasTable('settings')) |
|
22 | + { |
|
23 | + $settings = DB::table('settings')->get(); |
|
24 | + foreach($settings as $setting) |
|
25 | + { |
|
26 | + Config([$setting->key => $setting->value]); |
|
27 | + } |
|
28 | + } |
|
29 | + } |
|
30 | + catch(\Illuminate\Database\QueryException $e) |
|
31 | + { |
|
32 | 32 | |
33 | - } |
|
33 | + } |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
@@ -123,7 +123,7 @@ |
||
123 | 123 | |
124 | 124 | |
125 | 125 | |
126 | - ///////////////////////////////////////////////////////////////////////////////////////////////// |
|
126 | + ///////////////////////////////////////////////////////////////////////////////////////////////// |
|
127 | 127 | |
128 | 128 | |
129 | 129 |