New-OMIS/Modules/Employee/app/Models/Employee.php
2024-04-10 15:15:24 +05:45

19 lines
339 B
PHP

<?php
namespace Modules\Employee\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
class Employee extends Model
{
protected $table = 'tbl_employees';
protected $primaryKey = 'id';
protected $guarded = [];
public function user()
{
return $this->belongsTo(User::class, 'users_id');
}
}