multilanguage updated

This commit is contained in:
parsa aghaei committed 2024-11-03 16:01:47 +03:30
1 parent 027d1090df
commit 6c834607bd
12 files changed
+299 -25

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
<?php
namespace App\Models\Website;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Project extends Model
{
use HasFactory;
protected $table = 'website_projects'; // نام صحیح جدول
protected $fillable = ['category_id', 'image1', 'image2'];
public function translations()
{
return $this->hasMany(ProjectTranslation::class, 'project_id');
}
public function category()
{
return $this->belongsTo(ProjectCategory::class, 'category_id');
}
}