<?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
•321 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 Check If Relationship Exists In Laravel 8
1 year ago

Redirect to Specific Controller Method in Laravel
1 year ago

How to Redirect to External URL in Laravel
1 year ago

Use Alpine JS Intersect Plugin Instead of Defining Intersection Observable
1 year ago

How to make Axios PATCH Request
1 year ago

How to Group Resource in Laravel Nova
1 year ago