<?php namespace Database\Seeders; use Illuminate\Database\Seeder; use App\Models\Duration; class DurationSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $data = [ ['name'=>'30', 'status' => 1], ['name'=>'180', 'status' => 1], ['name'=>'365', 'status' => 1], ]; //dd($data); Duration::insert($data); } }