Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

update only update_at field on laravel eloquent

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

// simply this:
$user->touch();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #field #laravel #eloquent
ADD COMMENT
Topic
Name
5+5 =