Download src/app/Http/Controllers/SystemController.php from pnacorp/xsender: direct link, hf CLI and curl.
- Browser
- Download file 963 Bytes
-
https://huggingface.co/pnacorp/xsender/resolve/main/src/app/Http/Controllers/SystemController.php
- Command line
-
hf download hf://pnacorp/xsender/src/app/Http/Controllers/SystemController.php
-
curl -L -o SystemController.php https://huggingface.co/pnacorp/xsender/resolve/main/src/app/Http/Controllers/SystemController.php
963 Bytes
| 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')); | |
| } | |
| } | |