style updates

This commit is contained in:
Mark Gregory
2026-07-24 14:59:44 +01:00
parent 24ab771cd3
commit dd23205d0b
482 changed files with 7173 additions and 1435 deletions
@@ -1,13 +1,28 @@
<?php
namespace Modules\Localization\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\MorphTo;
final class LocalizedContent extends Model
{
protected $fillable = ['locale_id','field','value','updated_by'];
public function translatable(): MorphTo { return $this->morphTo(); }
public function locale(): BelongsTo { return $this->belongsTo(Locale::class); }
public function editor(): BelongsTo { return $this->belongsTo(User::class, 'updated_by'); }
protected $fillable = ['locale_id', 'field', 'value', 'updated_by'];
public function translatable(): MorphTo
{
return $this->morphTo();
}
public function locale(): BelongsTo
{
return $this->belongsTo(Locale::class);
}
public function editor(): BelongsTo
{
return $this->belongsTo(User::class, 'updated_by');
}
}