Laravel 5.1 – blade gives error when no record exists in eloquent relationship setup

Solution:

Before echoing the value you can check if it exists

{!! Form::text($rate->field, ($user->rates()->where(‘rate_id’, $rate->id)->first()) ? $user->rates()->where(‘rate_id’, $rate->id)->first()->pivot->value : null) !!}