parsaaghayi-backend/app/Models/Website/ProjectCategory.php
2024-11-03 16:01:47 +03:30

20 lines
442 B
PHP

<?php
namespace App\Models\Website;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ProjectCategory extends Model
{
use HasFactory;
protected $table = 'website_project_categories'; // نام صحیح جدول
protected $fillable = ['image'];
public function translations()
{
return $this->hasMany(ProjectCategoryTranslation::class, 'category_id');
}
}