'integer', 'uploader' => 'integer', 'reporter' => 'integer', 'status' => 'integer', ]; protected $searchStringColumns = [ 'id', 'tid', 'uploader', 'reporter', 'reason', 'status', 'report_at' => ['date' => true], ]; 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'); } }