Model and Migration files
This commit is contained in:
@@ -36,4 +36,9 @@ class Lahan extends Model
|
||||
{
|
||||
return $this->hasMany(Tanaman::class, 'lahan_id');
|
||||
}
|
||||
|
||||
public function panens(): HasMany
|
||||
{
|
||||
return $this->hasMany(Panen::class, 'lahan_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user