Update Model Profile

This commit is contained in:
2026-07-02 12:46:04 +07:00
parent c454a0b453
commit 90f13438db
+6
View File
@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\SoftDeletes;
use App\Models\User; use App\Models\User;
use App\Models\Wilayah\DesaKelurahan; use App\Models\Wilayah\DesaKelurahan;
use App\Models\Pertanian\Lahan;
class Profile extends Model class Profile extends Model
{ {
@@ -43,4 +44,9 @@ class Profile extends Model
{ {
return $this->belongsTo(User::class, 'user_id'); return $this->belongsTo(User::class, 'user_id');
} }
public function lahan()
{
return $this->hasMany(Lahan::class, 'profile_id');
}
} }