For example: how to combine these two arrays with one-time return output
$banner = Banner::all();
$channel = Channel::all();
return ['banner'=>$banner, 'channel'=>$channel];
Put two variable values into an array and return it directly
//thinkphp
Put two variable values into an array and return it directly
For example: how to combine these two arrays with one-time return output
//thinkphp
$banner = Banner::all();
$channel = Channel::all();