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
+36
View File
@@ -0,0 +1,36 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;
class DocumentType extends Model
{
use HasFactory;
protected $fillable = [
'code',
'name',
'description',
'max_file_size_kb',
'allowed_extensions',
'is_required',
'is_active',
];
protected function casts(): array
{
return [
'max_file_size_kb' => 'integer',
'is_required' => 'boolean',
'is_active' => 'boolean',
];
}
public function studentDocuments(): HasMany
{
return $this->hasMany(StudentDocument::class);
}
}