column('student_id'); $grid->column('reason'); $grid->column('use_time'); $grid->column('detail'); $grid->column('desc'); $grid->column('photos')->image('',80); $grid->column('sign'); $grid->filter(function (Grid\Filter $filter) { $filter->equal('id'); }); }); } /** * Make a show builder. * * @param mixed $id * * @return Show */ protected function detail($id) { return Show::make($id, new MedicationEntrustment(), function (Show $show) { $show->field('id'); $show->field('student_id'); $show->field('reason'); $show->field('use_time'); $show->field('detail'); $show->field('desc'); $show->field('photos'); $show->field('sign'); $show->field('created_at'); $show->field('updated_at'); }); } /** * Make a form builder. * * @return Form */ protected function form() { return Form::make(new MedicationEntrustment(), function (Form $form) { $form->text('student_id'); $form->text('reason'); $form->text('use_time'); $form->text('detail'); $form->text('desc'); $form->text('photos'); $form->text('sign'); }); } }