Add Json Response Helper

This commit is contained in:
R
2022-11-02 21:48:14 +07:00
parent 429dc476e2
commit 9a7f26928f
3 changed files with 15 additions and 4 deletions

View File

@@ -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');
}
}