2017 © Pedro Peláez
 

library laravel-disable-updated-at

A trait to disable the updated_at column on a Laravel Eloquent Model

image

wnx/laravel-disable-updated-at

A trait to disable the updated_at column on a Laravel Eloquent Model

  • Thursday, January 25, 2018
  • by stefanzweifel
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 20 % Grown

The README.md

Laravel DisableUpdatedAt Trait

Build Status Coverage Status StyleCI Latest Stable Version Total Downloads License, (*1)

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), (*2)

Installing

The easiest way to install the the script is by using composer., (*3)

composer require wnx/laravel-disable-updated-at

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:, (*4)

class Page extends Model
{
    const UPDATED_AT = null;
}

Usage

After installing the package you can use the trait in your models like this:, (*5)

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Wnx\DisableUpdatedAt\DisableUpdatedAt;

class Page extends Model
{
    use DisableUpdatedAt;
}

Running the tests

There are some phpunit tests. You can run them with the following command., (*6)

phpunit

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository., (*7)

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details., (*8)

The Versions

25/01 2018

dev-master

9999999-dev https://github.com/stefanzweifel/laravel-disable-updated-at

A trait to disable the updated_at column on a Laravel Eloquent Model

  Sources   Download

MIT

The Development Requires

laravel wnx updated_at

16/09 2017

v1.0.0

1.0.0.0 https://github.com/stefanzweifel/laravel-disable-updated-at

A trait to disable the updated_at column on a Laravel Eloquent Model

  Sources   Download

MIT

The Development Requires

laravel wnx updated_at