public function run() { ProductInfomation::truncate(); $template = 'app/views/admin/template.blade.php'; $template = file_get_contents($template); for ($i = 1; $i <= 30; $i++) { ProductInfomation::create(array('name_product' => 'Product_' . $i, 'value' => $template, 'product_id' => $i)); } }