Initial commit

This commit is contained in:
2026-04-12 06:24:30 +00:00
commit 007f107be6
213 changed files with 25576 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class StudentParent extends Model
{
use HasFactory;
protected $fillable = [
'student_id',
'relation_type',
'name',
'nik',
'birth_year',
'education',
'occupation',
'phone_number',
'address',
'is_alive',
];
protected function casts(): array
{
return [
'birth_year' => 'integer',
'is_alive' => 'boolean',
];
}
public function student(): BelongsTo
{
return $this->belongsTo(Student::class);
}
}