Skip to content

Commit

Permalink
min
Browse files Browse the repository at this point in the history
  • Loading branch information
alexPopaCode4 committed Jun 17, 2024
1 parent 3752ada commit abf4246
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/Concerns/HasEffectiveAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace App\Concerns;

use App\Enums\ResidenceEnvironment;
use App\Models\Beneficiary;
use App\Models\BeneficiaryPartner;
use App\Models\City;
Expand All @@ -18,17 +17,12 @@ public function initializeHasEffectiveAddress(): void
$this->fillable[] = 'legal_residence_county_id';
$this->fillable[] = 'legal_residence_city_id';
$this->fillable[] = 'legal_residence_address';
$this->fillable[] = 'legal_residence_environment';

$this->fillable[] = 'same_as_legal_residence';

$this->fillable[] = 'effective_residence_county_id';
$this->fillable[] = 'effective_residence_city_id';
$this->fillable[] = 'effective_residence_address';
$this->fillable[] = 'effective_residence_environment';

$this->casts['effective_residence_environment'] = ResidenceEnvironment::class;
$this->casts['legal_residence_environment'] = ResidenceEnvironment::class;
}

protected static function bootHasEffectiveAddress(): void
Expand Down
6 changes: 6 additions & 0 deletions app/Models/Beneficiary.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use App\Enums\Occupation;
use App\Enums\PresentationMode;
use App\Enums\ReferralMode;
use App\Enums\ResidenceEnvironment;
use App\Enums\Studies;
use App\Enums\Ternary;
use Illuminate\Database\Eloquent\Casts\AsEnumCollection;
Expand Down Expand Up @@ -59,6 +60,9 @@ class Beneficiary extends Model
'id_serial',
'id_number',

'legal_residence_environment',
'effective_residence_environment',

'primary_phone',
'backup_phone',
'contact_notes',
Expand Down Expand Up @@ -116,6 +120,8 @@ class Beneficiary extends Model
'civil_status' => CivilStatus::class,
'criminal_history' => Ternary::class,
'doesnt_have_children' => 'boolean',
'effective_residence_environment' => ResidenceEnvironment::class,
'legal_residence_environment' => ResidenceEnvironment::class,
'elder_care_count' => 'integer',
'gender' => Gender::class,
'has_family_doctor' => Ternary::class,
Expand Down

0 comments on commit abf4246

Please sign in to comment.