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