| Total Complexity | 4 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class LogController extends Controller |
||
| 14 | { |
||
| 15 | protected $formNames = ['user_name', 'url', 'data']; |
||
| 16 | |||
| 17 | public function __construct() |
||
| 18 | { |
||
| 19 | parent::__construct(); |
||
| 20 | |||
| 21 | $this->breadcrumb[] = ['title' => '日志列表', 'url' => route('admin::log.index')]; |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * 日志管理-日志列表 |
||
| 26 | * |
||
| 27 | */ |
||
| 28 | public function index() |
||
| 29 | { |
||
| 30 | $this->breadcrumb[] = ['title' => '日志列表', 'url' => '']; |
||
| 31 | return view('admin.log.index', ['breadcrumb' => $this->breadcrumb]); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * 日志管理-日志列表数据接口 |
||
| 36 | * |
||
| 37 | * @param Request $request |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | public function list(Request $request) |
||
| 49 | } |
||
| 50 | |||
| 51 | /** |
||
| 52 | * 编辑日志 |
||
| 53 | * |
||
| 54 | * @param int $id |
||
| 55 | * @return View |
||
| 56 | */ |
||
| 57 | public function edit($id) |
||
| 63 | } |
||
| 64 | } |
||
| 65 |