database/seeds/BloggerTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        $bloggers = array(
            [
                'name' => 'Anas Chughtai',
                'phone' => '1234567890',
                'email' => 'blogger1@system.com',
                'password' => Hash::make('password'),
            ],
            [
                'name' => 'Aqib Javed',
                'phone' => '0987654321',
                'email' => 'blogger2@system.com',
                'password' => Hash::make('password'),
            ],
        );
        foreach ($bloggers as $blogger) {
            \App\Interpreter::create($blogger);
        }
    }
public function run ( ) { $ bloggers = array ( [ 'name' => 'Anas Chughtai' , 'phone' => '1234567890' , 'email' => 'blogger1@system.com' , 'password' => Hash :: make ( 'password' ) , ] , [ 'name' => 'Aqib Javed' , 'phone' => '0987654321' , 'email' => 'blogger2@system.com' , 'password' => Hash :: make ( 'password' ) , ] , ) ; foreach ( $ bloggers as $ blogger ) { \ App \ Interpreter :: create ( $ blogger ) ; } }
Run the database seeds.
Run the database seeds .