database/seeds/SpeakersSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $speakers = $this->getSpeakers();
        foreach ($speakers as $speaker) {
            Speaker::create(['name' => $speaker]);
        }
    }
public function run ( ) { $ speakers = $ this -> getSpeakers ( ) ; foreach ( $ speakers as $ speaker ) { Speaker :: create ( [ 'name' => $ speaker ] ) ; } }
Run the database seeds.
Run the database seeds .