I am getting a true return with very query in Laravel 5.2. I am making query in the controller and returning an array.
if($term = $request->get('term')){
$booking = guests::where('booking', '=', $term)->get();
$active = guests::where('booking', '=', $term)->pluck('active');
}
// dd($active);
if($active){
echo '
I have read it could potentially be solved by attribute casting by attempts have not worked.
Thanks