<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Admin\Concern\HasAdminQuickCRUD; use ModStart\Admin\Layout\AdminCRUDBuilder; use ModStart\Grid\GridFilter; use ModStart\Support\Concern\HasFields; class MemberSelectController extends Controller { use HasAdminQuickCRUD; protected function crud(AdminCRUDBuilder $enw1u) { $enw1u->init('member_user')->field(function ($enw1u) { $enw1u->id('id', 'ID'); $enw1u->display('created_at', '创建时间'); $enw1u->image('avatar', '头像'); $enw1u->text('username', '用户名'); $enw1u->text('email', '邮箱'); $enw1u->text('phone', '手机'); })->gridFilter(function (GridFilter $zBPGV) { $zBPGV->eq('id', L('ID')); $zBPGV->like('username', '用户名'); $zBPGV->like('email', '邮箱'); $zBPGV->like('phone', '手机'); })->title('用户管理')->canDelete(false); } }