Update Dashboard Survey Petani

This commit is contained in:
2026-07-14 10:34:46 +07:00
parent 5b776b2ae8
commit e383aacbeb
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;
@@ -368,4 +370,9 @@ class Petani extends Model
return 'Belum tersegmentasi';
}
public function creator(): BelongsTo
{
return $this->belongsTo(User::class, 'created_by');
}
}