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) !!}
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) !!}