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.
		
		
		
		
		
			
		
			
				
					
					
						
							22 lines
						
					
					
						
							443 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							22 lines
						
					
					
						
							443 B
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								namespace App\Models;
							 | 
						|
								
							 | 
						|
								use Illuminate\Database\Eloquent\Factories\HasFactory;
							 | 
						|
								use Illuminate\Database\Eloquent\Model;
							 | 
						|
								
							 | 
						|
								class UserFav extends BaseModel
							 | 
						|
								{
							 | 
						|
								    use HasFactory;
							 | 
						|
									protected $guarded = ['id', 'created_at', 'updated_at']; //不允许批量赋值的字段
							 | 
						|
								
							 | 
						|
								    public function agentProduct()
							 | 
						|
									{
							 | 
						|
										return $this->belongsTo(AgentProduct::class);
							 | 
						|
									}
							 | 
						|
								
							 | 
						|
								    public function product()
							 | 
						|
									{
							 | 
						|
										return $this->belongsTo(Product::class);
							 | 
						|
									}
							 | 
						|
								}
							 |