hasOne('Reportpolice'); } public function getCreatedAtAttribute($value) { return Carbon::parse($value)->toDateTimeString(); } public function getUpdatedAtAttribute($value) { return Carbon::parse($value)->toDateTimeString(); } }