Exemplo n.º 1
0
    public function getFullNametoPrint()
    {
        return $this->first_name . ' ' . $this->last_name . ' ' . $this->mothers_last_name;
    }
    public function getParentesco()
    {
        if ($this->applicant_type->id == 3) {
            return $this->kinship;
        } else {
            return $this->applicant_type->name;
        }
    }
    public function getFullDateNactoPrint()
    {
        return Util::getfulldate($this->fech_nac);
    }
    public function getFullNumber()
    {
        return $this->home_phone_number . ' ' . $this->home_cell_phone_number;
    }
    public function getFullName()
    {
        return $this->last_name . ' ' . $this->mothers_last_name . ' ' . $this->first_name;
    }
}
Applicant::created(function ($applicant) {
    Activity::createdApplicant($applicant);
});
Applicant::updating(function ($applicant) {
    Activity::updateApplicant($applicant);
});