Retrieve single column value from a table

Posted 2 years ago by Alderwiereld

I am presently having the following query

$user_id = Auth::user()->id; $picture = Profile::all()->where('user_id','=',$user_id)->pluck('profile'); return $picture;

what it achieves is the following output


However i want it to return the value


because i want to make use of the same value inside the same controller

Please sign in or create an account to participate in this conversation.