Answers for "laravel updated_at false"

PHP
11

laravel model without timestamps

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Post extends Model
{
    public $timestamps = false;

    //
}
Posted by: Guest on April-03-2020
-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

Code answers related to "laravel updated_at false"

Browse Popular Code Answers by Language