Answers for "laravel make column timestamp in model"

PHP
0

custom timestamp column laravel

class BaseModel extends Eloquent {
    const CREATED_AT = 'date_created';
    const UPDATED_AT = 'date_modified';
}
Posted by: Guest on October-26-2021
-2

timestamp in model laravel

$user = User::find(1);
$user->profile_views_count = 123;
$user->timestamps = false;
$user->save();
Posted by: Guest on December-10-2020

Browse Popular Code Answers by Language