database/seeders/ProductSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $product = [
            [
                'id' => '1',
                'Name' => 'Diesel',
            ]
        ];
        Product::insert($product);
    }
public function run ( ) { $ product = [ [ 'id' => '1' , 'Name' => 'Diesel' , ] ] ; Product :: insert ( $ product ) ; }
Run the database seeds.
Run the database seeds .