database/seeds/UsersTableSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        factory(\CodeFin\Models\User::class,1)
                ->states('admin')
                ->create([
                    'name' => 'Luiz Carlos',
                    'email' => 'admin@user.com'
                ]);
        factory(\CodeFin\Models\User::class,1)
                ->create([
                    'name' => 'Jose Luiz',
                    'email' => 'client@user.com'
                ]);
    }
public function run ( ) { factory ( \ CodeFin \ Models \ User :: class , 1 ) -> states ( 'admin' ) -> create ( [ 'name' => 'Luiz Carlos' , 'email' => 'admin@user.com' ] ) ; factory ( \ CodeFin \ Models \ User :: class , 1 ) -> create ( [ 'name' => 'Jose Luiz' , 'email' => 'client@user.com' ] ) ; }
Run the database seeds.
Run the database seeds .