Skip to content

Commit

Permalink
LP-1 MetaData module dependency removed
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 committed Oct 15, 2023
1 parent ab268f0 commit 3a55aa1
Showing 1 changed file with 2 additions and 36 deletions.
38 changes: 2 additions & 36 deletions src/Models/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Fintech\Auth\Traits\MetaDataRelations;

class Profile extends Model
{
use \Fintech\Core\Traits\AuditableTrait;
use SoftDeletes;
use MetaDataRelations;

/*
|--------------------------------------------------------------------------
Expand Down Expand Up @@ -36,42 +38,6 @@ class Profile extends Model
|--------------------------------------------------------------------------
*/

/**
* Permanent Address
*/
public function country()
{
return $this->belongsTo(config('fintech.metadata.country_model'));
}

public function state()
{
return $this->belongsTo(config('fintech.metadata.state_model'));
}

public function city()
{
return $this->belongsTo(config('fintech.metadata.city_model'));
}

/**
* Present Address
*/
public function presentCountry()
{
return $this->belongsTo(config('fintech.metadata.country_model'), 'present_country_id');
}

public function presentState()
{
return $this->belongsTo(config('fintech.metadata.state_model'), 'present_state_id');
}

public function presentCity()
{
return $this->belongsTo(config('fintech.metadata.city_model'), 'present_city_id');
}

/**
* Parental Access
*/
Expand Down

0 comments on commit 3a55aa1

Please sign in to comment.