File: D:/HostingSpaces/stafa/stafa.nl/app/Komma/Testimonials/Models/TestimonialTranslation.php
<?php
namespace App\Komma\Testimonials\Models;
use App\Komma\Components\ComponentArea\HasComponentAreasInterface;
use App\Komma\Components\ComponentArea\HasComponentAreasTrait;
use App\Komma\Kms\Core\AbstractTranslationModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* Class TestimonialTranslation
*
* @package App\Komma\Pages\Models
* @property-read \App\Komma\Globalization\Languages\Models\Language $language
* @property-read \App\Komma\Testimonials\Models\Testimonial $translatable
* @property string $first_name
* @property string $last_name
* @property string $function
* @property string $telephone_label
* @property string $telephone_url
* @property string $email
* @property \Carbon\Carbon|null $created_at
* @property \Carbon\Carbon|null $updated_at
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Testimonials\Models\TestimonialTranslation whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Testimonials\Models\TestimonialTranslation whereMetaTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Testimonials\Models\TestimonialTranslation whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Testimonials\Models\TestimonialTranslation whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Testimonials\Models\TestimonialTranslation whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Testimonials\Models\TestimonialTranslation newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Testimonials\Models\TestimonialTranslation newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Testimonials\Models\TestimonialTranslation query()
*/
final class TestimonialTranslation extends AbstractTranslationModel
{
protected $table = 'testimonial_translations';
protected $fillable = ['first_name', 'last_name', 'function', 'telephone_label', 'telephone_url', 'email'];
public function translatable():BelongsTo
{
return $this->belongsTo(Testimonial::class, 'testimonial_id');
}
}