'integer', 'uploader' => 'integer', 'reporter' => 'integer', 'status' => 'integer', ]; public function texture() { return $this->belongsTo(Texture::class, 'tid', 'tid'); } public function informer() { return $this->belongsTo(User::class, 'reporter', 'uid'); } protected function serializeDate(DateTimeInterface $date) { return $date->format('Y-m-d H:i:s'); } }