Merge branch 'main' of https://github.com/WDI-Ideas/cheerstothe_season_laravel11 into sayli
This commit is contained in:
@@ -160,13 +160,17 @@ class IamPrincipal extends Authenticatable implements JWTSubject
|
||||
}
|
||||
}
|
||||
|
||||
public function orders()
|
||||
{
|
||||
return $this->hasMany(OrderedPassport::class, 'iam_principal_xid','id');
|
||||
}
|
||||
// public function orders()
|
||||
// {
|
||||
// return $this->hasMany(OrderedPassport::class, 'iam_principal_xid','id');
|
||||
// }
|
||||
|
||||
public function notification()
|
||||
// public function notification()
|
||||
// {
|
||||
// return $this->hasMany(NotificationDetails::class,'principal_xid', 'id');
|
||||
// }
|
||||
public function state()
|
||||
{
|
||||
return $this->hasMany(NotificationDetails::class,'principal_xid', 'id');
|
||||
return $this->belongsTo(ManageState::class, 'state_xid', 'id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user