database/seeders/Manufactures.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('manufactures')->insert([
            'manu_name' => 'Apple',
            'image' => 'Apple.png'          
        ]);
        DB::table('manufactures')->insert([
            'manu_name' => 'SamSung',
            'image' => 'samsung.png'          
        ]);
        DB::table('manufactures')->insert([
            'manu_name' => 'Oppo',
            'image' => 'oppo.png'
        ]);
        DB::table('manufactures')->insert([
            'manu_name' => 'HP',
            'image' => 'hp.jpeg'
        ]);
        DB::table('manufactures')->insert([
            'manu_name' => 'ASUS',
            'image' => 'asus.png'
        ]);
    }
public function run ( ) { DB :: table ( 'manufactures' ) -> insert ( [ 'manu_name' => 'Apple' , 'image' => 'Apple.png' ] ) ; DB :: table ( 'manufactures' ) -> insert ( [ 'manu_name' => 'SamSung' , 'image' => 'samsung.png' ] ) ; DB :: table ( 'manufactures' ) -> insert ( [ 'manu_name' => 'Oppo' , 'image' => 'oppo.png' ] ) ; DB :: table ( 'manufactures' ) -> insert ( [ 'manu_name' => 'HP' , 'image' => 'hp.jpeg' ] ) ; DB :: table ( 'manufactures' ) -> insert ( [ 'manu_name' => 'ASUS' , 'image' => 'asus.png' ] ) ; }
Run the database seeds.
Run the database seeds .