laravel-soft-deletes-not-empty maintained by codemonkeyluffy
Description
SoftDeletesNotEmpty With Unix Timestamp For Laravel5+
Author
Last update
2019/04/02 14:51
(dev-master)
License
Downloads
282
Tags
Laravel SoftDeletes With Unix Timestamp
Installing
$ composer require CodeMonkeyLuffy/laravel-soft-deletes
Usage
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use CodeMonkeyLuffy\LaravelSoftDeletes\Eloquent\SoftDeletes;
class Car extends Model
{
use SoftDeletesNotEmpty;
protected $dateFormat = 'U';
protected $dates = ['deleted_at'];
}
License
MIT