File size: 963 Bytes
89a1081 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | <?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Session;
class SystemController extends Controller
{
/**
* @return \Illuminate\Http\RedirectResponse
*
*/
public function cacheClear() {
Artisan::call('optimize:clear');
$notify[] = ['success', translate('Cache cleared successfully')];
return back()->withNotify($notify);
}
/**
* @return \Illuminate\Http\RedirectResponse
*
*/
public function systemInfo() {
Session::put("menu_active", true);
$title = translate("System Information");
$systemInfo = [
'laravelversion' => app()->version(),
'serverdetail' => $_SERVER,
'phpversion' => phpversion(),
];
return view('admin.system_info',compact('title','systemInfo'));
}
}
|