'datetime', ]; } public function vehicle() { return $this->belongsTo(Vehicle::class); } public function tag() { return $this->belongsTo(Tag::class); } public function cancelledBy() { return $this->belongsTo(User::class, 'cancelled_by'); } public function performedBy() { return $this->belongsTo(User::class, 'performed_by'); } public function cancellationReason() { return $this->belongsTo(CatalogCancellationReason::class, 'cancellation_reason_id'); } public function isInscription() { return $this->action_type === 'sustitucion_primera_vez'; } public function isUpdate() { return $this->action_type === 'actualizacion'; } public function isSubstitution() { return $this->action_type === 'sustitucion'; } public function isCancellation() { return $this->action_type === 'cancelacion'; } }