$rank_data = GuideRank::select(DB::raw('id as rank_id, rank_name') )->get()->toArray();
http://www.wdh.com/home-api/guide/task/member/savetask?task_group=2&title=&date[]=2018-08-23&date[]=2018-08-24&sid=1000
// 如果http请求中有变量但未赋值,此时isset可以检测到存在,为空
// 如果请求中没有变量,isset为空
// dd($request->all());
if ( isset($target) ) {
echo 22222;
} else {
echo 333;
}
if ( empty($title) )
echo 444;
else
echo 555;
if ( $title )
echo 444;
else
echo 555;