为什么这样写表单列表会报错呀
public function create() {
$users = DB::connection('pgsql')->select('select * from test01');
//$data=array();
return view('demo',['data'=>$users]);
}
<div>
@foreach($data as $datas)
<li>{{ $data->id }}</li>
@endforeach
</div>