first commit
This commit is contained in:
		
							
								
								
									
										18
									
								
								app/Models/Contact.php
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										18
									
								
								app/Models/Contact.php
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,18 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace App\Models;
 | 
			
		||||
 | 
			
		||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
 | 
			
		||||
use Illuminate\Database\Eloquent\Model;
 | 
			
		||||
 | 
			
		||||
class Contact extends Model
 | 
			
		||||
{
 | 
			
		||||
    use HasFactory;
 | 
			
		||||
 | 
			
		||||
    protected $fillable=['phone','email','location','facebook','instagram','whatsapp','vk','youtube'];
 | 
			
		||||
 | 
			
		||||
    public function translations()
 | 
			
		||||
    {
 | 
			
		||||
        return $this->hasMany(ContactTranslation::class);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user