title: How to Print json values in blade laravel
body: <p>I Send data in db json formate in this create function.</p>
  
  <pre><code>public function create(Request $request)
    {
  
      $posts = new Post();
      $posts-&gt;user_id = $request-&gt;id;
      $posts-&gt;title = $request-&gt;title;
      $posts-&gt;description = $request-&gt;description;
      $tags = explode(",", $request-&gt;labels);
      $encode = json_encode($tags);
      $posts-&gt;tags = $encode;
      $posts-&gt;save();
        return redirect()-&gt;back()-&gt;with('message' , 'post created!!!!!');
  
    }
  </code></pre>
  
  <p>In this getdata function fetch data from db </p>
  
  <pre><code> public function getdata()
    {
        $posts = Post::all();
        return view('allposts',compact('posts'));
    }
  </code></pre>
  
  <p>now i print data in blade file but tags value is null in tag field.
  How to print json values??</p>
  
  <pre><code>@foreach($posts as $post)
  &lt;tr&gt;
      &lt;td&gt;{{$post-&gt;title}}&lt;/td&gt;
      &lt;td&gt;{{$post-&gt;description}}&lt;/td&gt;
      &lt;td&gt;{{$post-&gt;tags}}&lt;/td&gt;
      &lt;td&gt;
          &lt;a href="{{url('edit_post',$post-&gt;id)}}"&gt; &lt;button type="button" class="btn btn-primary"&gt;update&lt;/button&gt;&lt;/a&gt;
          &lt;a href="{{route('delete_post',$post-&gt;id)}}"&gt;&lt;button type="button" class="btn btn-danger" &gt;delete&lt;/button&gt;&lt;/a&gt;
      &lt;/td&gt;
  
  &lt;/tr&gt;
  @endforeach
  </code></pre>