| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | 
							- <?php
 
- namespace App\Admin\Controllers\Tool;
 
- use App\Http\Controllers\Controller;
 
- use App\Models\Navigation;
 
- use Encore\Admin\Controllers\HasResourceActions;
 
- use Encore\Admin\Form;
 
- use Encore\Admin\Layout\Content;
 
- use Illuminate\Support\Facades\Cache;
 
- class CacheController extends Controller
 
- {
 
-     use HasResourceActions;
 
-     /**
 
-      * Index interface.
 
-      *
 
-      * @param Content $content
 
-      * @return Content
 
-      */
 
-     public function index(Content $content)
 
-     {
 
-         return $content
 
-             ->header('更新缓存')
 
-             ->description('')
 
-             ->body(view('admin.cache.index'));
 
-     }
 
-     protected function form()
 
-     {
 
-         $form = new Form(new Navigation);
 
-         $form->display('ID');
 
-         $form->display('Created at');
 
-         $form->display('Updated at');
 
-         return $form;
 
-     }
 
-     public function clear()
 
-     {
 
-         Cache::flush();
 
-         admin_success("成功", "清除成功");
 
-         return back();
 
-     }
 
- }
 
 
  |