update v1.0.7.7
This commit is contained in:
@@ -60,26 +60,18 @@ class ErrorAndDebuggingController extends Controller
|
||||
$bugsnag_debug = ($bugsnag_debug) ? 'true' : 'false';
|
||||
if ($debug != \Input::get('debug') || $bugsnag_debug != \Input::get('bugsnag')) {
|
||||
// dd($request->input());
|
||||
$debug_new = base_path()
|
||||
.DIRECTORY_SEPARATOR.
|
||||
'config'
|
||||
.DIRECTORY_SEPARATOR.
|
||||
'app.php';
|
||||
$debug_new = base_path().DIRECTORY_SEPARATOR.'.env';
|
||||
$datacontent = File::get($debug_new);
|
||||
$datacontent = str_replace("'debug' => ".$debug,
|
||||
"'debug' => ".\Input::get('debug'),
|
||||
$datacontent = str_replace('APP_DEBUG='.$debug,
|
||||
'APP_DEBUG='.\Input::get('debug'),
|
||||
$datacontent);
|
||||
File::put($debug_new, $datacontent);
|
||||
|
||||
// dd($request->input());
|
||||
$bugsnag_debug_new = base_path()
|
||||
.DIRECTORY_SEPARATOR.
|
||||
'config'
|
||||
.DIRECTORY_SEPARATOR.
|
||||
'app.php';
|
||||
$bugsnag_debug_new = base_path().DIRECTORY_SEPARATOR.'.env';
|
||||
$datacontent2 = File::get($bugsnag_debug_new);
|
||||
$datacontent2 = str_replace("'bugsnag_reporting' => ".$bugsnag_debug,
|
||||
"'bugsnag_reporting' => ".\Input::get('bugsnag'),
|
||||
$datacontent2 = str_replace('APP_BUGSNAG='.$bugsnag_debug,
|
||||
'APP_BUGSNAG='.\Input::get('bugsnag'),
|
||||
$datacontent2);
|
||||
File::put($bugsnag_debug_new, $datacontent2);
|
||||
|
||||
|
Reference in New Issue
Block a user