column('id')->sortable(); $grid->column('name'); $grid->column('logo')->image('',100); $grid->column('created_at'); $grid->disableCreateButton(); $grid->disableDeleteButton(); $grid->disableRowSelector(); $grid->disableViewButton(); }); } /** * Make a show builder. * * @param mixed $id * * @return Show */ protected function detail($id) { return Show::make($id, new Setting(), function (Show $show) { $show->field('id'); $show->field('name'); $show->field('logo'); $show->field('created_at'); $show->field('updated_at'); }); } /** * Make a form builder. * * @return Form */ protected function form() { return Form::make(new Setting(), function (Form $form) { $form->display('id'); $form->text('name'); $form->image('logo')->saveFullUrl() ->uniqueName()->autoUpload() ->autoSave(false) ->removable(false) ->width(4) ->required(); $form->disableViewButton(); $form->disableDeleteButton(); $form->disableListButton(); $form->disableEditingCheck(); $form->disableViewCheck(); $form->disableCreatingCheck(); }); } }