31 lines
599 B
31 lines
599 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Foundation\Auth\User as Authenticatable;
|
|
use Illuminate\Notifications\Notifiable;
|
|
|
|
class VendorEmployee extends Authenticatable
|
|
{
|
|
use Notifiable;
|
|
|
|
protected $hidden = [
|
|
'password',
|
|
'auth_token',
|
|
'remember_token',
|
|
];
|
|
|
|
public function restaurant()
|
|
{
|
|
return $this->belongsTo(Restaurant::class);
|
|
}
|
|
|
|
public function vendor()
|
|
{
|
|
return $this->belongsTo(Vendor::class);
|
|
}
|
|
|
|
public function role(){
|
|
return $this->belongsTo(EmployeeRole::class,'employee_role_id');
|
|
}
|
|
}
|
|
|