File manager - Edit - /var/www/payraty/hris-standalone/app/Models/TimeSheet.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class TimeSheet extends Model { protected $fillable = [ 'employee_id', 'date', 'hours', 'remark', 'created_by', ]; public function employee() { return $this->hasOne('App\Models\User', 'id', 'employee_id'); } public function employees() { return $this->hasOne('App\Models\Employee', 'id', 'employee_id'); } public static function branches($id) { $branchs = Employee::where('branch_id', '=', $id); return $branchs; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings