database/seeds/DivisionSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $divisons = [
            'Senior staff',
            'Junior staff',
            'CEO',
            'Founder',
            'Receptionist',
        ];
        foreach($divisons as $divison) {
            Division::create([
                'name' => $divison
            ]);
        }
    }
public function run ( ) { $ divisons = [ 'Senior staff' , 'Junior staff' , 'CEO' , 'Founder' , 'Receptionist' , ] ; foreach ( $ divisons as $ divison ) { Division :: create ( [ 'name' => $ divison ] ) ; } }
Run the database seeds.
Run the database seeds .