database/seeds/CategoriesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Category::create([
            'name' => 'Activite',
            'slug' => 'Activite'
        ]);
        Category::create([
            'name' => 'Beaute',
            'slug' => 'Beaute'
        ]);
        Category::create([
            'name' => 'Formation',
            'slug' => 'Formation'
        ]);
        Category::create([
            'name' => 'Gastronomie',
            'slug' => 'Gastronomie'
        ]);
        Category::create([
            'name' => 'Hotel',
            'slug' => 'Hotel'
        ]); 
         Category::create([
            'name' => 'Sport',
            'slug' => 'Sport'
        ]); 
         Category::create([
            'name' => 'Shopping',
            'slug' => 'Shopping'
        ]);
    }
public function run ( ) { Category :: create ( [ 'name' => 'Activite' , 'slug' => 'Activite' ] ) ; Category :: create ( [ 'name' => 'Beaute' , 'slug' => 'Beaute' ] ) ; Category :: create ( [ 'name' => 'Formation' , 'slug' => 'Formation' ] ) ; Category :: create ( [ 'name' => 'Gastronomie' , 'slug' => 'Gastronomie' ] ) ; Category :: create ( [ 'name' => 'Hotel' , 'slug' => 'Hotel' ] ) ; Category :: create ( [ 'name' => 'Sport' , 'slug' => 'Sport' ] ) ; Category :: create ( [ 'name' => 'Shopping' , 'slug' => 'Shopping' ] ) ; }
Run the database seeds.
Run the database seeds .