foreach(DB::table("users")->get() as $user) {
DB::table("users")
->where("id", $user->id)
->update(array("password"=>Hash::make($user->password)));
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community