Answers for "update only update_at field on laravel eloquent"

0

update only update_at field on laravel eloquent

//instead of
$user->updated_at = DB::raw('NOW()');
$user->save();

// simply this:
$user->touch();
Posted by: Guest on August-26-2021

Code answers related to "update only update_at field on laravel eloquent"

Browse Popular Code Answers by Language