laravel中get方式内容输出
php部分
$related = articles::where('title','like','%'.$title.'%')
->where('id','<>',$id)
->groupBy('id')
->limit($count)
->get();
html部分
@foreach($related as $relate)
{{$relate->title}} //类似于这样
@endforeach
浙公网安备 33010602011771号