链街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

  1. <?php
  2. namespace App\Models;
  3. use Dcat\Admin\Traits\HasDateTimeFormatter;
  4. use Illuminate\Database\Eloquent\Model;
  5. class LanzuServiceReward extends Model
  6. {
  7. use HasDateTimeFormatter;
  8. protected $table = 'lanzu_service_reward';
  9. protected $dateFormat = 'U';
  10. protected $casts = [
  11. 'set_reward'=>'json'
  12. ];
  13. public function getCreatedAtAttribute($value)
  14. {
  15. return date('Y-m-d H:i',$value);
  16. }
  17. public function getUpdatedAtAttribute($value)
  18. {
  19. return date('Y-m-d H:i',$value);
  20. }
  21. }