<?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
•434 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 SnippetsHow to Generate Master Key for MeiliSearch
2 years ago
How to Remove Public from URL in Laravel 8 Application
2 years ago
How to Create Your Own Custom Blade Directive in Laravel 8
2 years ago
How to Disable New User Registration in Laravel
2 years ago
Laravel Where Not Equal To Code Example
2 years ago
How to get current Date, Time and Day in Laravel 8
2 years ago