Fixed!
I had to add [0] at my {{ $name }}, so the solution is {{ $name[0] }}
Instead of using pluck
since you only need a single 'value' you can use the value
method.
$value = DB::table(...)->where(...)->value('field');
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community