Added a column of coupon locations to the background add list. How to connect them to two interfaces respectively?
不忘初心
不忘初心 2019-06-11 09:53:30
0
1
843

public function create()

{

$f = array();

$f[] = Form::input('title','offer Coupon name');

$f[] = Form::number('coupon_price','Coupon face value',0)->min(0);

$f[ ] = Form::number('use_min_price','Coupon minimum consumption')->min(0);

$f[] = Form::number('coupon_time','Coupon is valid Period')->min(0);

$f[] = Form::number('sort','sort');

$f[] = Form:: radio('place','location',0)->options([['label'=>'Homepage location','value'=>1],['label'=>'Coupon location ','value'=>0]]);

$f[] = Form::radio('status','status',0)->options([['label'= >'On','value'=>1],['label'=>'Off','value'=>0]]);


$form = Form::make_post_form('Add Coupon',$f,Url::build('save'));

$this->assign(compact('form')) ;

                                                                                                                                       return $this->fetch('public/form-builder');

不忘初心
不忘初心

reply all(1)
秋香姐家的小书童

I don’t quite understand what you mean by the two interfaces

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template