<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class InvoiceComUserModel extends Model { protected $connection = 'order'; protected $table = 'lie_invoice_com_user'; protected $guarded = ['id']; protected $primaryKey = 'id'; public $timestamps = true; const CREATED_AT = 'create_time'; const UPDATED_AT = 'update_time'; public function fromDateTime($value) { return strtotime(parent::fromDateTime($value)); } }