Add Json Response Helper
This commit is contained in:
@@ -79,4 +79,9 @@ class User extends Authenticatable
|
||||
{
|
||||
return $this->belongsTo(Person::class, 'person_id');
|
||||
}
|
||||
|
||||
public function ownedPersons()
|
||||
{
|
||||
return $this->hasMany(Person::class, 'owner_user_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user