<?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 $lZifj) { $lZifj->init('member_user')->field(function ($lZifj) { $lZifj->id('id', 'ID'); $lZifj->display('created_at', '创建时间'); $lZifj->image('avatar', '头像'); $lZifj->text('username', '用户名'); $lZifj->text('email', '邮箱'); $lZifj->text('phone', '手机'); })->gridFilter(function (GridFilter $bu01d) { $bu01d->eq('id', L('ID')); $bu01d->like('username', '用户名'); $bu01d->like('email', '邮箱'); $bu01d->like('phone', '手机'); })->title('用户管理')->canDelete(false); } }