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