title: how to have html codes in mysql or json in laravel using seeder
body: <p>I'm trying to build a website builder, where I want to store HTML structure of the plugins/portlets manually, where user can have the structure and whatever editable data they are inserting, gets stored into database using serialize in the controller, now I came to know MySQL doesn't hold html data or say it is unsafe to store, I decided to store the basic structure into JSON format into a separate file, Now I don't want to have these JSON files in my public folder destination, I went through the Seeder documentation and tutorial to find path of the <a href="https://laravel.com/docs/5.2/seeding" rel="nofollow">file</a> and get the JSON data. Also went through this <a href="http://www.fullstack4u.com/laravel/laravel-5-load-seed-data-from-json/" rel="nofollow">tutorial</a></p>
  
  <p>and came across following class:</p>
  
  <pre><code>&lt;?php
  
  use Illuminate\Database\Seeder;
  use App\User;
  
  class PortletTableSeeder extends Seeder {
  
     public function run()
     {
        $json = File::get("database/data/portlets.json");
        $data = json_decode($json);
        foreach ($data as $obj) {
            'id' =&gt; $obj-&gt;id,
            'html_code' =&gt; $obj-&gt;html_code,
            'dummy_data' =&gt; $obj-&gt;dummy_data,
            //more objects..
           ));
         }
      }
  
  }
  
  ?&gt;
  </code></pre>
  
  <p>Is it the correct way of executing this? and calling it into blade file for example I have mixstyles by the name if id of the theme/portlet in gulpfile can I have like this:</p>
  
  <pre><code>&lt;link href="css/{{$id}}.css" rel="stylesheet" type="text/css" /&gt;
  </code></pre>