Your ROOT_URL in app.ini is http://167.99.32.63:3000/ but you are visiting http://167.99.32.63/ibrahim/BAGETWEBPANEL/src/branch/master/app/Models/VendorEmployee.php You should set ROOT_URL correctly, otherwise the web may not work correctly.
 
 

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');
}
}