'array', 'search' => 'array', ]; protected $fillable = [ 'uid', 'title', 'content', 'images', 'reply_at', 'reply_content', 'device', 'phone', 'search' ]; protected $dateFormat = 'U'; public function user() { return $this->belongsTo(UserModel::class, 'uid', 'uid') ->select('nickname', 'headimgurl', 'sex'); } }