database/seeders/CategorySeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $category = [
            [
                'id' => '1',
                'name' => 'CT-1',
            ],
        ];
        Category::insert($category);
    }
public function run ( ) { $ category = [ [ 'id' => '1' , 'name' => 'CT-1' , ] , ] ; Category :: insert ( $ category ) ; }
Run the database seeds.
Run the database seeds .