Update Master

This commit is contained in:
2026-03-10 14:05:41 +07:00
parent 72d7b97939
commit 79c91d83e5
88 changed files with 7289 additions and 956 deletions
+22 -1
View File
@@ -4,7 +4,8 @@ namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\Wilayah\User;
use App\Models\Wilayah\DesaKelurahan;
class Profile extends Model
{
use SoftDeletes;
@@ -18,5 +19,25 @@ class Profile extends Model
'alamat',
'kk',
'ktp',
'desa_kelurahan_id',
'path_kk',
'file_kk',
'path_ktp',
'file_ktp',
'keluarga_id',
'created_by',
'updated_by',
'deleted_by'
];
public function desakelurahan()
{
return $this->belongsTo(DesaKelurahan::class, 'desa_kelurahan_id');
}
public function user()
{
return $this->belongsTo(User::class, 'user_id');
}
}