For example: how to combine these two arrays with one-time return output
$banner = Banner::all();
$channel = Channel::all();
jesse2018-09-06 13:03:30
return ['banner'=>$banner, 'channel'=>$channel];
Put two variable values into an array and return it directly
柯伟超2018-08-31 11:03:22
For example: how to combine these two arrays with one-time return output
//thinkphp
$banner = Banner::all();
$channel = Channel::all();