database/seeders/DatabaseSeeder.php
/**
     * Seed the application's database.
     *
     * @return void
     */
Seed the application's database.
@return void
Seed the application ' s database . @return void
public function run()
    {
        $user = User::factory()->create([
            'firstname' => 'Gabriel',
            'lastname' => 'Abiah',
            'role' => 'agent',
            'email' => 'gabriel@manifestghana.com',
            'mobile' => '0546747672',
            'password' => bcrypt('0546747672'),
        ],);
        $user = User::factory()->create([
            'firstname' => 'Erob',
            'lastname' => 'Osei',
            'role' => 'admin',
            'email' => 'info@1blockghana.com',
            'mobile' => '0546747672',
            'password' => bcrypt('1blockghana'),
        ]);
    }
public function run ( ) { $ user = User :: factory ( ) -> create ( [ 'firstname' => 'Gabriel' , 'lastname' => 'Abiah' , 'role' => 'agent' , 'email' => 'gabriel@manifestghana.com' , 'mobile' => '0546747672' , 'password' => bcrypt ( '0546747672' ) , ] , ) ; $ user = User :: factory ( ) -> create ( [ 'firstname' => 'Erob' , 'lastname' => 'Osei' , 'role' => 'admin' , 'email' => 'info@1blockghana.com' , 'mobile' => '0546747672' , 'password' => bcrypt ( '1blockghana' ) , ] ) ; }
Seed the application's database.
Seed the application ' s database .
// \App\Models\User::factory(10)->create(); // 'user_role' => 'doctor', // 'user_role' => 'doctor',