diff --git a/app/Http/Controllers/Common/SettingsController.php b/app/Http/Controllers/Common/SettingsController.php index 9478a1181..a7206d3d4 100644 --- a/app/Http/Controllers/Common/SettingsController.php +++ b/app/Http/Controllers/Common/SettingsController.php @@ -573,8 +573,8 @@ class SettingsController extends Controller * write provider list in app.php line 128 */ $app = base_path().'/config/app.php'; - $str = "\n\n\t\t\t'App\\Plugins\\$filename"."\\ServiceProvider',"; - $line_i_am_looking_for = 144; + $str = "\n\t\t'App\\Plugins\\$filename"."\\ServiceProvider',"; + $line_i_am_looking_for = 140; $lines = file($app, FILE_IGNORE_NEW_LINES); $lines[$line_i_am_looking_for] = $str; file_put_contents($app, implode("\n", $lines)); @@ -696,7 +696,7 @@ class SettingsController extends Controller $str = "'App\\Plugins\\$slug"."\\ServiceProvider',"; $path_to_file = base_path().'/config/app.php'; $file_contents = file_get_contents($path_to_file); - $file_contents = str_replace($str, '//', $file_contents); + $file_contents = str_replace($str, '', $file_contents); file_put_contents($path_to_file, $file_contents); $plugin = new Plugin(); $plugin = $plugin->where('path', $slug)->first(); @@ -714,8 +714,8 @@ class SettingsController extends Controller $plug->status = 1; $app = base_path().'/config/app.php'; - $str = "'App\\Plugins\\$slug"."\\ServiceProvider',"; - $line_i_am_looking_for = 144; + $str = "\n\t\t'App\\Plugins\\$slug"."\\ServiceProvider',"; + $line_i_am_looking_for = 140; $lines = file($app, FILE_IGNORE_NEW_LINES); $lines[$line_i_am_looking_for] = $str; file_put_contents($app, implode("\n", $lines)); @@ -729,7 +729,7 @@ class SettingsController extends Controller $path_to_file = base_path().'/config/app.php'; $file_contents = file_get_contents($path_to_file); - $file_contents = str_replace($str, '//', $file_contents); + $file_contents = str_replace($str, '', $file_contents); file_put_contents($path_to_file, $file_contents); } $plug->save(); diff --git a/config/app.php b/config/app.php index ba6ec779d..6a0492ef4 100644 --- a/config/app.php +++ b/config/app.php @@ -13,7 +13,7 @@ return [ | */ - 'debug' => false, + 'debug' => true, /* |-------------------------------------------------------------------------- @@ -135,14 +135,10 @@ return [ 'providers' => [ -// - - // - - // - - // - + /** + * Faveo Plugins + */ + /* * Laravel Framework Service Providers... */ @@ -187,8 +183,8 @@ return [ Unisharp\Laravelfilemanager\LaravelFilemanagerServiceProvider::class, Intervention\Image\ImageServiceProvider::class, 'Tymon\JWTAuth\Providers\JWTAuthServiceProvider', - - ], + + ], /* |-------------------------------------------------------------------------- @@ -253,4 +249,4 @@ return [ 'token' => 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIiwiaXNzIjoiaHR0cDpcL1wvbG9jYWxob3N0XC9mYXZlby1oZWxwZGVzay1naXRodWJcL3B1YmxpY1wvYXBpXC92MVwvYXV0aGVudGljYXRlIiwiaWF0IjoxNDU1NzAyNDEyLCJleHAiOjE0NTU3MDYwMTIsIm5iZiI6MTQ1NTcwMjQxMiwianRpIjoiOTdlODg1ODNjOWQyNDIzNWQ4MzI3Y2ExNzI1NDY1MDQifQ.37E7H2kRCQuz5oBRkQLKhNNpaNXyk4FiEYS9RQ7HZPY', - ]; + ]; \ No newline at end of file