链街Dcat后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
535 B

<?php
namespace App\Models;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
class LanzuServiceReward extends Model
{
use HasDateTimeFormatter;
protected $table = 'lanzu_service_reward';
protected $dateFormat = 'U';
protected $casts = [
'set_reward'=>'json'
];
public function getCreatedAtAttribute($value)
{
return date('Y-m-d H:i',$value);
}
public function getUpdatedAtAttribute($value)
{
return date('Y-m-d H:i',$value);
}
}