<?php
 namespace App\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 BlogCommentController extends Controller { use HasAdminQuickCRUD; protected function crud(AdminCRUDBuilder $builder) { $builder ->init('blog_comment') ->field(function ($builder) { $builder->id('id', 'ID'); $builder->display('created_at', L('Created At'))->listable(false); $builder->display('blogId', '博客'); $builder->display('username', '用户'); $builder->display('email', '邮箱'); $builder->display('url', 'URL'); $builder->textarea('content', '内容'); }) ->gridFilder(function (GridFilter $filter) { $filter->eq('id', L('ID')); $filter->like('username', '用户'); }) ->title('留言管理'); } }