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() {
        DB::table('users')->update(['is_active' => true]);
        $users = User::query()->get();
        foreach ($users as $user) {
            error_log($user->username);
            $user->update(['password' => 'welcome']);
        }
    }
public function run ( ) { DB :: table ( 'users' ) -> update ( [ 'is_active' => true ] ) ; }
Run the database seeds.
Run the database seeds .
// //        $users = User::query()->get(); //        foreach ($users as $user) { //            error_log($user->username); //            $user->update(['password' => 'welcome']); //        }