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.

31 lines
629 B

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. <?php
  2. namespace App\Http\Controllers\Admin;
  3. use App\Http\Controllers\Admin\CommonController;
  4. class IndexController extends CommonController
  5. {
  6. public function __construct()
  7. {
  8. parent::__construct();
  9. }
  10. public function index()
  11. {
  12. return view('admin.index.index');
  13. }
  14. //更新配置
  15. public function upconfig()
  16. {
  17. cache()->forget('sysconfig'); //删除缓存
  18. success_jump('更新成功!', route('admin_sysconfig'));
  19. }
  20. //更新缓存
  21. public function upcache()
  22. {
  23. cache()->forget('sysconfig'); //删除缓存
  24. success_jump('更新成功!', route('admin_sysconfig'));
  25. }
  26. }