database/seeders/UserSeeder.php
/**
     * Run the database seeds.
     *
     * @return void
     */
Run the database seeds.
@return void
Run the database seeds . @return void
public function run()
    {
        DB::table('users')->insert([
            'name' => "Alexia",
            'email' => 'admin@yopmail.com',
            'password' => Hash::make('password'),
            'company_id' => 1,
            'status' => 1
        ],[
            'name' => "Developer",
            'email' => 'dev@yopmail.com',
            'password' => Hash::make('dev@2022'),
            'company_id' => 1,
            'status' => 1,
            'is_dev' => 1,
        ]);
    }
public function run ( ) { DB :: table ( 'users' ) -> insert ( [ 'name' => " Alexia " , 'email' => 'admin@yopmail.com' , 'password' => Hash :: make ( 'password' ) , 'company_id' => 1 , 'status' => 1 ] , [ 'name' => " Developer " , 'email' => 'dev@yopmail.com' , 'password' => Hash :: make ( 'dev@2022' ) , 'company_id' => 1 , 'status' => 1 , 'is_dev' => 1 , ] ) ; }
Run the database seeds.
Run the database seeds .
// 'email' => Str::random(10).'@gmail.com', // 'email' => Str::random(10).'@gmail.com',