File manager - Edit - /home/autoph/public_html/projects/app/Models/AttendancePostingDtls.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class AttendancePostingDtls extends Model { use HasFactory; protected $table = "attendance_posting_details"; protected $guarded = []; public function header() { return $this->belongsTo(AttendancePosting::class, 'header_id'); } public function employee() { return $this->belongsTo(Employee::class, 'employee_id', 'employee_id')->select('employee_id','firstname', 'middlename', 'lastname'); } public function department() { return $this->hasOne(Department::class, 'id', 'department_id')->select('id','name'); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.13 |
proxy
|
phpinfo
|
Settings