File manager - Edit - /var/www/payraty/hris-standalone/app/Models/Warning.php
Back
<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Warning extends Model { protected $fillable = [ 'warning_to', 'warning_by', 'subject', 'warning_date', 'description', 'created_by', ]; public function employee() { return $this->hasOne('App\Models\Employee', 'id', 'employee_id')->first(); } public function warningTo($warningto) { return Employee::where('id',$warningto)->first(); } public function warningBy($warningby) { return Employee::where('id',$warningby)->first(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings