database/seeds/VillesTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        Ville::create([
            'name' => 'Ariana',
            'slug' => 'Ariana'
        ]);
        Ville::create([
            'name' => 'Jendouba',
            'slug' => 'Jendouba'
        ]);
        Ville::create([
            'name' => 'Gafsa',
            'slug' => 'Gafsa'
        ]);
        Ville::create([
            'name' => 'Gabès',
            'slug' => 'Gabès'
        ]);
        Ville::create([
            'name' => 'Bizerte',
            'slug' => 'Bizerte'
        ]);
        Ville::create([
            'name' => 'Ben Arous',
            'slug' => 'Ben Arous'
        ]);
        Ville::create([
            'name' => 'Béja',
            'slug' => 'Béja'
        ]);
        Ville::create([
            'name' => 'Kairouan',
            'slug' => 'Kairouan'
        ]);
        Ville::create([
            'name' => 'Kasserine',
            'slug' => 'Kasserine'
        ]);
        Ville::create([
            'name' => 'Kébili',
            'slug' => 'Kébili'
        ]);
        Ville::create([
            'name' => 'Le Kef',
            'slug' => 'Le Kef'
        ]);
        Ville::create([
            'name' => 'Mahdia',
            'slug' => 'Mahdia'
        ]); 
        Ville::create([
            'name' => 'La Manouba',
            'slug' => 'La Manouba'
        ]); 
        Ville::create([
            'name' => 'Médenine',
            'slug' => 'Médenine'
        ]); 
        Ville::create([
            'name' => 'Monastir',
            'slug' => 'Monastir'
        ]); 
        Ville::create([
            'name' => 'Nabeul',
            'slug' => 'Nabeul'
        ]); 
        Ville::create([
            'name' => 'Sfax',
            'slug' => 'Sfax'
        ]); 
        Ville::create([
            'name' => 'Sidi Bouzid',
            'slug' => 'Sidi Bouzid'
        ]); 
        Ville::create([
            'name' => 'Siliana',
            'slug' => 'Siliana'
        ]); 
        Ville::create([
            'name' => 'Sousse',
            'slug' => 'Sousse'
        ]); 
        Ville::create([
            'name' => 'Tataouine',
            'slug' => 'Tataouine'
        ]); 
        Ville::create([
            'name' => 'Tozeur',
            'slug' => 'Tozeur'
        ]); 
        Ville::create([
            'name' => 'Tunis',
            'slug' => 'Tunis'
        ]); 
        Ville::create([
            'name' => 'Zaghouan',
            'slug' => 'Zaghouan'
        ]); 
       }
public function run ( ) { Ville :: create ( [ 'name' => 'Ariana' , 'slug' => 'Ariana' ] ) ; Ville :: create ( [ 'name' => 'Jendouba' , 'slug' => 'Jendouba' ] ) ; Ville :: create ( [ 'name' => 'Gafsa' , 'slug' => 'Gafsa' ] ) ; Ville :: create ( [ 'name' => 'Gabès', 'slug' => 'Gabès' ] ) ; Ville :: create ( [ 'name' => 'Bizerte' , 'slug' => 'Bizerte' ] ) ; Ville :: create ( [ 'name' => 'Ben Arous' , 'slug' => 'Ben Arous' ] ) ; Ville :: create ( [ 'name' => 'Béja', 'slug' => 'Béja' ] ) ; Ville :: create ( [ 'name' => 'Kairouan' , 'slug' => 'Kairouan' ] ) ; Ville :: create ( [ 'name' => 'Kasserine' , 'slug' => 'Kasserine' ] ) ; Ville :: create ( [ 'name' => 'Kébili', 'slug' => 'Kébili' ] ) ; Ville :: create ( [ 'name' => 'Le Kef' , 'slug' => 'Le Kef' ] ) ; Ville :: create ( [ 'name' => 'Mahdia' , 'slug' => 'Mahdia' ] ) ; Ville :: create ( [ 'name' => 'La Manouba' , 'slug' => 'La Manouba' ] ) ; Ville :: create ( [ 'name' => 'Médenine', 'slug' => 'Médenine' ] ) ; Ville :: create ( [ 'name' => 'Monastir' , 'slug' => 'Monastir' ] ) ; Ville :: create ( [ 'name' => 'Nabeul' , 'slug' => 'Nabeul' ] ) ; Ville :: create ( [ 'name' => 'Sfax' , 'slug' => 'Sfax' ] ) ; Ville :: create ( [ 'name' => 'Sidi Bouzid' , 'slug' => 'Sidi Bouzid' ] ) ; Ville :: create ( [ 'name' => 'Siliana' , 'slug' => 'Siliana' ] ) ; Ville :: create ( [ 'name' => 'Sousse' , 'slug' => 'Sousse' ] ) ; Ville :: create ( [ 'name' => 'Tataouine' , 'slug' => 'Tataouine' ] ) ; Ville :: create ( [ 'name' => 'Tozeur' , 'slug' => 'Tozeur' ] ) ; Ville :: create ( [ 'name' => 'Tunis' , 'slug' => 'Tunis' ] ) ; Ville :: create ( [ 'name' => 'Zaghouan' , 'slug' => 'Zaghouan' ] ) ; }
Run the database seeds.
Run the database seeds .