noble/app/Models/Company.php
2023-05-16 15:54:23 +03:00

24 lines
414 B
PHP
Executable File

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Company extends Model
{
use HasFactory;
protected $fillable=['image'];
public function translations()
{
return $this->hasMany(CompanyTranslation::class);
}
public function images()
{
return $this->hasMany(CompanyImage::class);
}
}