Update v1.0.6.4
This commit is contained in:
@@ -573,8 +573,8 @@ class SettingsController extends Controller
|
|||||||
* write provider list in app.php line 128
|
* write provider list in app.php line 128
|
||||||
*/
|
*/
|
||||||
$app = base_path().'/config/app.php';
|
$app = base_path().'/config/app.php';
|
||||||
$str = "\n\n\t\t\t'App\\Plugins\\$filename"."\\ServiceProvider',";
|
$str = "\n\t\t'App\\Plugins\\$filename"."\\ServiceProvider',";
|
||||||
$line_i_am_looking_for = 144;
|
$line_i_am_looking_for = 140;
|
||||||
$lines = file($app, FILE_IGNORE_NEW_LINES);
|
$lines = file($app, FILE_IGNORE_NEW_LINES);
|
||||||
$lines[$line_i_am_looking_for] = $str;
|
$lines[$line_i_am_looking_for] = $str;
|
||||||
file_put_contents($app, implode("\n", $lines));
|
file_put_contents($app, implode("\n", $lines));
|
||||||
@@ -696,7 +696,7 @@ class SettingsController extends Controller
|
|||||||
$str = "'App\\Plugins\\$slug"."\\ServiceProvider',";
|
$str = "'App\\Plugins\\$slug"."\\ServiceProvider',";
|
||||||
$path_to_file = base_path().'/config/app.php';
|
$path_to_file = base_path().'/config/app.php';
|
||||||
$file_contents = file_get_contents($path_to_file);
|
$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);
|
file_put_contents($path_to_file, $file_contents);
|
||||||
$plugin = new Plugin();
|
$plugin = new Plugin();
|
||||||
$plugin = $plugin->where('path', $slug)->first();
|
$plugin = $plugin->where('path', $slug)->first();
|
||||||
@@ -714,8 +714,8 @@ class SettingsController extends Controller
|
|||||||
$plug->status = 1;
|
$plug->status = 1;
|
||||||
|
|
||||||
$app = base_path().'/config/app.php';
|
$app = base_path().'/config/app.php';
|
||||||
$str = "'App\\Plugins\\$slug"."\\ServiceProvider',";
|
$str = "\n\t\t'App\\Plugins\\$slug"."\\ServiceProvider',";
|
||||||
$line_i_am_looking_for = 144;
|
$line_i_am_looking_for = 140;
|
||||||
$lines = file($app, FILE_IGNORE_NEW_LINES);
|
$lines = file($app, FILE_IGNORE_NEW_LINES);
|
||||||
$lines[$line_i_am_looking_for] = $str;
|
$lines[$line_i_am_looking_for] = $str;
|
||||||
file_put_contents($app, implode("\n", $lines));
|
file_put_contents($app, implode("\n", $lines));
|
||||||
@@ -729,7 +729,7 @@ class SettingsController extends Controller
|
|||||||
$path_to_file = base_path().'/config/app.php';
|
$path_to_file = base_path().'/config/app.php';
|
||||||
|
|
||||||
$file_contents = file_get_contents($path_to_file);
|
$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);
|
file_put_contents($path_to_file, $file_contents);
|
||||||
}
|
}
|
||||||
$plug->save();
|
$plug->save();
|
||||||
|
@@ -13,7 +13,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'debug' => false,
|
'debug' => true,
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
@@ -135,13 +135,9 @@ return [
|
|||||||
|
|
||||||
'providers' => [
|
'providers' => [
|
||||||
|
|
||||||
//
|
/**
|
||||||
|
* Faveo Plugins
|
||||||
//
|
*/
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Laravel Framework Service Providers...
|
* Laravel Framework Service Providers...
|
||||||
@@ -188,7 +184,7 @@ return [
|
|||||||
Intervention\Image\ImageServiceProvider::class,
|
Intervention\Image\ImageServiceProvider::class,
|
||||||
'Tymon\JWTAuth\Providers\JWTAuthServiceProvider',
|
'Tymon\JWTAuth\Providers\JWTAuthServiceProvider',
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user