database/seeders/CategoryWineSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        category_wine::create([
            'nome' => 'Tinto',
            'img' => '1.jpg',
        ]);
        category_wine::create([
            'nome' => 'Verde',
            'img' => '2.jpg',
        ]);
        category_wine::create([
            'nome' => 'Rosé',
            'img' => '3.jpg',
        ]);
        category_wine::create([
            'nome' => 'Branco',
            'img' => '4.jpg',
        ]);
        category_wine::create([
            'nome' => 'Espumante',
            'img' => '5.jpg',
        ]);
    }
public function run ( ) { category_wine :: create ( [ 'nome' => 'Tinto' , 'img' => '1.jpg' , ] ) ; category_wine :: create ( [ 'nome' => 'Verde' , 'img' => '2.jpg' , ] ) ; category_wine :: create ( [ 'nome' => 'Rosé', 'img' => '3.jpg' , ] ) ; category_wine :: create ( [ 'nome' => 'Branco' , 'img' => '4.jpg' , ] ) ; category_wine :: create ( [ 'nome' => 'Espumante' , 'img' => '5.jpg' , ] ) ; }
Run the database seeds.
Run the database seeds .