31 lines
529 B
PHP
31 lines
529 B
PHP
<?php
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
/**
|
|
* App\Models\ArtworkTranslation
|
|
*
|
|
* @property-read Artwork $artwork
|
|
*/
|
|
class ArtworkTranslation extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'artwork_translations';
|
|
|
|
protected $fillable = [
|
|
'artwork_id',
|
|
'locale',
|
|
'title',
|
|
'description',
|
|
];
|
|
|
|
public function artwork(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Artwork::class);
|
|
}
|
|
}
|