database/seeds/SpeakerTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $password = Hash::make('password');
        $speakers = array(
            array(
                "id" => 2,
                "name" => "Saman Rana",
                "email" => "samanranaw2@gmail.com",
                "password" => $password,
                "phone" => "031237267826",
                "status" => 1,
                "avatar" => "",
            ),
            array(
                "id" => 1,
                "name" => "Saman Rana",
                "email" => "samanranaw1@gmail.com",
                "password" => $password,
                "phone" => "031237267826",
                "status" => 1,
                "avatar" => "",
            )
        );
        foreach ($speakers as $speaker)
        {
            \App\Models\Speaker::create($speaker);
        }
    }
public function run ( ) { $ password = Hash :: make ( 'password' ) ; $ speakers = array ( array ( " id " => 2 , " name " => " Saman Rana " , " email " => " samanranaw2@gmail.com " , " password " => $ password , " phone " => " 031237267826 " , " status " => 1 , " avatar " => " " , ) , array ( " id " => 1 , " name " => " Saman Rana " , " email " => " samanranaw1@gmail.com " , " password " => $ password , " phone " => " 031237267826 " , " status " => 1 , " avatar " => " " , ) ) ; foreach ( $ speakers as $ speaker ) { \ App \ Models \ Speaker :: create ( $ speaker ) ; } }
Run the database seeds.
Run the database seeds .