2019年11月15日
摘要: 建立控制器 在app/Admin/Controllers新建对应的控制器来管理某个数据表。控制器例子: <?php namespace App\Admin\Controllers; use Encore\Admin\Form; use Encore\Admin\Grid; use Encore\Ad 阅读全文
posted @ 2019-11-15 16:40 潇潇六月雨 阅读(1633) 评论(0) 推荐(0)
摘要: protected function grid() { return Admin::grid(Client::class, function (Grid $grid) { $grid->id('ID')->sortable(); $grid->filter(function($filter){ $f 阅读全文
posted @ 2019-11-15 16:25 潇潇六月雨 阅读(698) 评论(0) 推荐(0)
摘要: 1.创建模型 $ php artisan make:model Models/Issue 2.模型的白名单机制,用于赋值 class Issue extends Model { //指定表名 protected $table = 'article2'; //指定主键 protected $prima 阅读全文
posted @ 2019-11-15 14:29 潇潇六月雨 阅读(510) 评论(0) 推荐(0)