Download the PHP package wnx/laravel-disable-updated-at without Composer
On this page you can find all versions of the php package wnx/laravel-disable-updated-at. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wnx/laravel-disable-updated-at
More information about wnx/laravel-disable-updated-at
Files in wnx/laravel-disable-updated-at
Package laravel-disable-updated-at
Short Description A trait to disable the updated_at column on a Laravel Eloquent Model
License MIT
Homepage https://github.com/stefanzweifel/laravel-disable-updated-at
Informations about the package laravel-disable-updated-at
Laravel DisableUpdatedAt Trait
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)
Installing
The easiest way to install the the script is by using composer.
Using Laravel >=5.5.5?: If you've installed Laravel Version >= 5.5.5 you don't need this package. The behaviour has been updated in the 5.5.5 Release.
You can disable the updated_at
column by updating the UPDATED_AT
constant like this:
Usage
After installing the package you can use the trait in your models like this:
Running the tests
There are some phpunit tests. You can run them with the following command.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Stefan Zweifel - Initial work - stefanzweifel
License
This project is licensed under the MIT License - see the LICENSE file for details.