title: Split string in Laravel Framework
body: <p>How do I split string and display it in a table in Laravel Framework? I fetch data from my database that consists of one column but in a string such as <code>{ 1234, normal, r4r3r2 }</code>. I want to split it into three different parts/values by commas and display it in a table of three columns.</p>
  
  <p>For now, I only can display the data without splitting the them.</p>
  
  <p>My HomeController:</p>
  
  <pre><code>public function index()
    {
      $test = Test::all();
      return view('home')-&gt;with('test', $test);
    }
  </code></pre>
  
  <p>My home.blade.php:</p>
  
  <pre><code>&lt;ol&gt;
     @foreach($test as $row)
       &lt;li&gt;{{ $row-&gt;data }}&lt;/li&gt;
     @endforeach
  &lt;/ol&gt;
  </code></pre>