laravel timestamp false code example
Example 1: laravel model without timestamps
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Post extends Model
{
public $timestamps = false;
//
}
Example 2: laravel timestamp false
public $timestamps = false;
Example 3: timestamp in model laravel
$user = User::find(1);
$user->profile_views_count = 123;
$user->timestamps = false;
$user->save();