<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Post extends Model { public $timestamps = false; # disable created_at and updated_at }
How to Disable Timestamp in Laravel
Learn how to disable timestamp (created_at and updated_at) in Laravel
Created on Aug 01, 2021
•273 views
If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️
Load comments for How to Disable Timestamp in Laravel
PostSrc Code Components
Collection of Tailwind CSS components for everyone to use. Browse all of the components that are right for your project.
View ComponentsSponsors 👑
+ Add YoursOther Code Snippets
All Snippets
How to Clear Views Cache in Laravel
1 year ago

How to Upgrade Composer to Version 2 in Laravel Forge
1 year ago

How to Get All of The Available Routes in Laravel
1 year ago

How to Install MariaDB on macOS Monterey
1 year ago

How to Check if Model Doesn't Have Relation in Laravel
1 year ago

Laravel Check Current Environment
1 year ago