PHPackages                             wnx/laravel-disable-updated-at - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. wnx/laravel-disable-updated-at

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

wnx/laravel-disable-updated-at
==============================

A trait to disable the updated\_at column on a Laravel Eloquent Model

v1.0.0(8y ago)034MITPHP

Since Sep 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/stefanzweifel/laravel-disable-updated-at)[ Packagist](https://packagist.org/packages/wnx/laravel-disable-updated-at)[ Docs](https://github.com/stefanzweifel/laravel-disable-updated-at)[ RSS](/packages/wnx-laravel-disable-updated-at/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel DisableUpdatedAt Trait
==============================

[](#laravel-disableupdatedat-trait)

[![Build Status](https://camo.githubusercontent.com/0dc3e2b46517bc10cc04221acc5c4a1e8caf630bf5f9b7ac2eab07d7dfe251bf/68747470733a2f2f7472617669732d63692e6f72672f73746566616e7a77656966656c2f6c61726176656c2d64697361626c652d757064617465642d61742e737667)](https://travis-ci.org/stefanzweifel/laravel-disable-updated-at)[![Coverage Status](https://camo.githubusercontent.com/0ce387ef85c81239ba3f5d27d90d56332d34ce1c194452de3e2eaa728b821af4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f73746566616e7a77656966656c2f6c61726176656c2d64697361626c652d757064617465642d61742f62616467652e7376673f6272616e63683d666561747572652532466164642d636f766572616c6c73)](https://coveralls.io/github/stefanzweifel/laravel-disable-updated-at?branch=feature%2Fadd-coveralls)[![StyleCI](https://camo.githubusercontent.com/408348cd29e035937f30547da5398ea8cf7859ad7c1ad8b5e1080da737a4bd74/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130333434343639352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/103444695)[![Latest Stable Version](https://camo.githubusercontent.com/038a9be35c537f00fc6e46d8da049be605fecba1d1a9a2d3aaedb7c7939b664a/68747470733a2f2f706f7365722e707567782e6f72672f776e782f6c61726176656c2d64697361626c652d757064617465642d61742f762f737461626c65)](https://packagist.org/packages/wnx/laravel-disable-updated-at)[![Total Downloads](https://camo.githubusercontent.com/813b75f9aca0ace4f9e5306f4158dc53bcfee33e0128eda86f6ad2429522eb8c/68747470733a2f2f706f7365722e707567782e6f72672f776e782f6c61726176656c2d64697361626c652d757064617465642d61742f646f776e6c6f616473)](https://packagist.org/packages/wnx/laravel-disable-updated-at)[![License](https://camo.githubusercontent.com/2ea7a28126222b4bcbb0f6322f96052aaccc8869bec99b7a6073362adb628198/68747470733a2f2f706f7365722e707567782e6f72672f776e782f6c61726176656c2d64697361626c652d757064617465642d61742f6c6963656e7365)](https://packagist.org/packages/wnx/laravel-disable-updated-at)

A quick and easy way to disable the `updated_at` column on an Eloquent Model. (For more information on how to use this Trait read [this blog post](https://stefanzweifel.io/posts/disableupdatedat-trait-for-laravel-5-4))

### Installing

[](#installing)

The easiest way to install the the script is by using composer.

```
composer require wnx/laravel-disable-updated-at
```

**Using Laravel &gt;=5.5.5?**: If you've installed Laravel Version &gt;= 5.5.5 you don't need this package. The behaviour [has been updated](https://github.com/laravel/framework/pull/21178) in the [5.5.5 Release](https://github.com/laravel/framework/releases/tag/v5.5.5). You can disable the `updated_at` column by updating the `UPDATED_AT` constant like this:

```
class Page extends Model
{
    const UPDATED_AT = null;
}
```

Usage
-----

[](#usage)

After installing the package you can use the trait in your models like this:

```
