lahan skor has petani

This commit is contained in:
2026-08-07 14:17:06 +07:00
parent 0a0c86d648
commit 946fabb9a5
3 changed files with 17 additions and 16 deletions
+2 -1
View File
@@ -18,6 +18,7 @@ use App\Enums\KondisiTanaman;
use App\Enums\SeranganHama;
use App\Enums\PenyakitTanaman;
use App\Enums\KeparahanSerangan;
use App\Models\Pertanian\Petani;
class Lahan extends Model
{
@@ -98,7 +99,7 @@ class Lahan extends Model
public function petani(): BelongsTo
{
return $this->belongsTo(Profile::class, 'petani_id');
return $this->belongsTo(Petani::class, 'petani_id');
}
public function komoditas(): BelongsTo