Commit awal: prototipe UI SIAKAD Untan

This commit is contained in:
Ariyutta
2026-10-24 11:45:32 +07:00
commit d9b9cb5c0f
477 changed files with 51958 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace App\Models\Dosen;
use App\Models\User;
use Database\Factories\Dosen\DosenFactory;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Attributes\Table;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
#[Table('profil_dosen')]
#[Fillable(['user_id', 'nidn', 'nip', 'jabatan_fungsional'])]
class Dosen extends Model
{
/** @use HasFactory<DosenFactory> */
use HasFactory;
/** @return BelongsTo<User, $this> */
public function user(): BelongsTo
{
return $this->belongsTo(User::class);
}
/** @return Attribute<string|null, never> */
protected function nomorInduk(): Attribute
{
return Attribute::get(fn (): ?string => $this->nidn);
}
}