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