$a_models = collect([]);
$list_of_b_models = $modelB->whereIn('id', [1,2,3])->with('relationA')->get();
forEach($list_of_b_models as $model_b) {
$a_models = $a_models->merge($model_b->relationA);
}
User::find(1)->blogs()->with('topics')->paginate(10)
public function short () {
return $this->hasMany('Site', 'owner', 'login');
}
'attributes' => [
'FieldName' => '',
],
{{Form::model($tariff, ['method' => 'PATCH', 'route' => ['tariffs.update', $tariff->id]])}}
{{ Form::text('salary', isset($tariff) ? formatRubles($tariff->salary) : null, ['class' => 'form-control']) }}
{{Form::close()}}