svoydom/app/Models/Contact.php

19 lines
388 B
PHP
Raw Normal View History

2023-05-17 09:57:20 +03:00
<?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);
}
}