dimanche 2 août 2020

ErrorException htmlspecialchars() expects parameter 1 to be string, object given ()

My controller

   public function total_record()
{
   $tailor_measurement=DB::select('select count(*) from tailor_measurement ');
    return view('total record',['tailor_measurement'=>$tailor_measurement]);
  
}

My view total record

<!DOCTYPE html>
<html>
<head>
<title>Total Records</title>
</head>
<body>
 @foreach($tailor_measurement as $row)
 
@endforeach
</body>
</html>

It give me error htmlspecialchars() expects parameter 1 to be string, object given (View: C:\wamp64\www\shaban\resources\views\total record.blade.php)



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3fjr1Jy
via IFTTT

Aucun commentaire:

Enregistrer un commentaire