api person create & update & add family

This commit is contained in:
Muhammad Fajar
2022-11-01 14:41:59 +07:00
parent a34fb34180
commit ba0023544f
10 changed files with 345 additions and 132 deletions

22
app/Models/Family.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Family extends Model
{
use HasFactory;
protected $table = 'family_relations';
protected $fillable = [
'owner_id',
'relation_with_owner',
'person_id',
'created_by',
'updated_by',
'deleted_by',
];
}