title: Displaying unserialize value in blade Laravel
body: <p>i have serialize data in my code, to make me more flexible in inputing data</p>
  <p>but i still dont know how to displaying serialize data in blade</p>
  <p>this is my serialize data</p>
  <p><a href="https://i.stack.imgur.com/wPxnH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wPxnH.png" alt="enter image description here" /></a></p>
  <p>this is my controller</p>
  <pre><code>public function preview($id)
    {
      $form = NewForm::whereId($id)-&gt;firstOrFail();
      // return $form;
  
      if($form-&gt;is_published)
      {
        $data['form'] = $form;
        $data['participant'] = $form-&gt;participant;
        $data['idea'] = $form-&gt;idea;
        $data['character'] = $form-&gt;character;
        $data['link'] = $form-&gt;link;
        $data['images'] = $form-&gt;images;
        $data['finance'] = $form-&gt;finance;
        $data['competition'] = $form-&gt;competition;
        $data['competition_list'] = $form-&gt;competition_list;
        $data['audition'] = $form-&gt;audition;
        $data['confirmation'] = $form-&gt;confirmation;
        $data['survey'] = unserialize($form-&gt;survey);
  
        // return $data;
  
        $pdf = PDF::loadView('pdf.form', $data);
  
        return $pdf-&gt;stream('DSCX'.sprintf(&quot;%04d&quot;, $form-&gt;id).'.pdf');
      }
  
      return 'Proposal not published';
    }
  </code></pre>
  <p>this is my blade</p>
  <pre><code>&lt;label&gt;Survey&lt;/label&gt;
     &lt;p&gt;{{ $survey-&gt;source }}&lt;/p&gt;
  &lt;/td&gt;
  </code></pre>
  <p>when i do</p>
  <blockquote>
  <p>unserialize($form-&gt;survey)
  it is returning this error
  unserialize(): Error at offset 0 of 251 bytes</p>
  </blockquote>
  <p>how do i display the data? thank you</p>