@@ -41,14 +41,14 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | Settings::firstOrCreate( |
| 43 | 43 | ['key' => 'app.logo'], |
| 44 | - ['key' => 'app.logo', 'value' => '/storage/img/' . $fileName] |
|
| 45 | - )->update(['value' => '/storage/img/' . $fileName]); |
|
| 44 | + ['key' => 'app.logo', 'value' => '/storage/img/'.$fileName] |
|
| 45 | + )->update(['value' => '/storage/img/'.$fileName]); |
|
| 46 | 46 | |
| 47 | - Log::debug('Route ' . Route::currentRouteName() . ' visited by User ID-' . Auth::user()->user_id); |
|
| 47 | + Log::debug('Route '.Route::currentRouteName().' visited by User ID-'.Auth::user()->user_id); |
|
| 48 | 48 | Log::debug('Submitted Data - ', $request->toArray()); |
| 49 | - Log::notice('A new company logo has been uploaded by User ID-' . Auth::user()->user_id); |
|
| 49 | + Log::notice('A new company logo has been uploaded by User ID-'.Auth::user()->user_id); |
|
| 50 | 50 | |
| 51 | - return response()->json(['url' => '/storage/img/' . $fileName]); |
|
| 51 | + return response()->json(['url' => '/storage/img/'.$fileName]); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | public function configuration() |
@@ -74,14 +74,14 @@ discard block |
||
| 74 | 74 | ]); |
| 75 | 75 | |
| 76 | 76 | // Update the site timezone |
| 77 | - if (config('app.timezone') !== $request->timezone) { |
|
| 77 | + if(config('app.timezone') !== $request->timezone) { |
|
| 78 | 78 | Settings::firstOrCreate( |
| 79 | 79 | ['key' => 'app.timezone'], |
| 80 | 80 | ['key' => 'app.timezone', 'value' => $request->timezone] |
| 81 | 81 | )->update(['value' => $request->timezone]); |
| 82 | 82 | } |
| 83 | 83 | // Update the maximum file upload size |
| 84 | - if (config('filesystems.paths.max_size') !== $request->filesize) { |
|
| 84 | + if(config('filesystems.paths.max_size') !== $request->filesize) { |
|
| 85 | 85 | Settings::firstOrCreate( |
| 86 | 86 | ['key' => 'filesystems.paths.max_size'], |
| 87 | 87 | ['key' => 'filesystems.paths.max_size', 'value' => $request->filesize] |
@@ -74,14 +74,16 @@ |
||
| 74 | 74 | ]); |
| 75 | 75 | |
| 76 | 76 | // Update the site timezone |
| 77 | - if (config('app.timezone') !== $request->timezone) { |
|
| 77 | + if (config('app.timezone') !== $request->timezone) |
|
| 78 | + { |
|
| 78 | 79 | Settings::firstOrCreate( |
| 79 | 80 | ['key' => 'app.timezone'], |
| 80 | 81 | ['key' => 'app.timezone', 'value' => $request->timezone] |
| 81 | 82 | )->update(['value' => $request->timezone]); |
| 82 | 83 | } |
| 83 | 84 | // Update the maximum file upload size |
| 84 | - if (config('filesystems.paths.max_size') !== $request->filesize) { |
|
| 85 | + if (config('filesystems.paths.max_size') !== $request->filesize) |
|
| 86 | + { |
|
| 85 | 87 | Settings::firstOrCreate( |
| 86 | 88 | ['key' => 'filesystems.paths.max_size'], |
| 87 | 89 | ['key' => 'filesystems.paths.max_size', 'value' => $request->filesize] |