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

+19
View File
@@ -0,0 +1,19 @@
<?php
namespace App\Models\Website;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class ProjectTranslation extends Model
{
use HasFactory;
protected $table = 'website_project_translations'; // نام صحیح جدول
protected $fillable = ['project_id', 'locale', 'title', 'description'];
public function project()
{
return $this->belongsTo(Project::class, 'project_id');
}
}