<?php namespace Pcb\Model; use Illuminate\Database\Eloquent\Model as Eloquent; class PcbOrder extends Eloquent { protected $connection="pcb"; protected $table = 'order'; protected $primaryKey = 'order_id'; const CREATED_AT = 'create_time'; const UPDATED_AT = 'update_time'; public $timestamps = true; public function fromDateTime($value){ return strtotime(parent::fromDateTime($value)); } }
本文来自博客园,作者:孙龙-程序员,转载请注明原文链接:https://www.cnblogs.com/sunlong88/articles/10141498.html