You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					32 lines
				
				599 B
			
		
		
			
		
	
	
					32 lines
				
				599 B
			| 
								 
											2 years ago
										 
									 | 
							
								<?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');
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |