You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
632 B
32 lines
632 B
<?php
|
|
namespace App\Http\Controllers\Admin;
|
|
|
|
use App\Http\Controllers\Admin\CommonController;
|
|
|
|
class IndexController extends CommonController
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
|
|
public function index()
|
|
{
|
|
return view('admin.index.index');
|
|
}
|
|
|
|
//更新配置
|
|
public function upconfig()
|
|
{
|
|
cache()->forget('sysconfig'); //删除缓存
|
|
success_jump('更新成功!');
|
|
}
|
|
|
|
//更新缓存
|
|
public function upcache()
|
|
{
|
|
cache()->forget('sysconfig'); //删除缓存
|
|
dir_delete(storage_path().'/framework/cache/data/');
|
|
success_jump('更新成功!');
|
|
}
|
|
}
|