<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\SoftDeletes; class RecruitArticle extends Model { use SoftDeletes; public function getReleasedAtAttribute($value) { return date('Y-m-d', $value); } public function getRobotAttribute($value) { return $value?'采集':'人工'; } }