This commit is contained in:
2026-07-14 10:49:08 +07:00
8 changed files with 1244 additions and 4 deletions
+7
View File
@@ -4,7 +4,9 @@ namespace App\Models\Pertanian;
use App\Enums\Pendidikan;
use App\Enums\Pernikahan;
use App\Models\User;
use App\Models\Wilayah\DesaKelurahan;
use App\Models\Pertanian\Lahan;
use App\Models\Pertanian\Komoditas;
use App\Models\Pertanian\PraktikBudidaya;
use App\Models\Pertanian\SurveyPanen;
@@ -391,4 +393,9 @@ class Petani extends Model
return 'Belum tersegmentasi, data belum lengkap';
}
public function creator(): BelongsTo
{
return $this->belongsTo(User::class, 'created_by');
}
}