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