title: Laravel passing data to view htmlspecialchars() expects parameter 1 to be string
body: <pre><code>$Family = family::where('family_id',12)-&gt;firstOrFail();
  //dd($Family); Works here very well
  
  return view('OkFamily',compact('Family'));
  </code></pre>
  
  <p>in my OkFamily.blade.php
  when i try to print this object</p>
  
  <pre><code>{{ $Family }} and {{ $Family['name']}} and {{ $Family-&gt;name }} 
  </code></pre>
  
  <p>htmlspecialchars() expects parameter 1 to be string, array given (View: C:\WAMP64\www\Family\resources\views\OkFamily.blade.php)</p>
  
  <p>other controllers and views works well except this</p>