HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/base.komma.pro/app/Testimonials/Models/TestimonialTranslation.php
<?php
namespace App\Testimonials\Models;

use Komma\KMS\Components\ComponentArea\HasComponentAreasInterface;
use Komma\KMS\Components\ComponentArea\HasComponentAreasTrait;
use Komma\KMS\Core\AbstractTranslationModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

/**
 * Class PageTranslation
 *
 * @package App\Pages\Models
 * @property int page_id
 * @property-read \Komma\KMS\Globalization\Languages\Models\Language $language
 * @property-read \App\Testimonials\Models\Testimonial $translatable
 * @mixin \Eloquent
 * @property int $id
 * @property int $testimonial_id
 * @property int $language_id
 * @property string $name
 * @property string $slug
 * @property string $description
 * @property string|null $meta_description
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation whereDescription($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation whereLanguageId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation whereMetaDescription($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation whereMetaTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation whereTestimonialId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation whereSlug($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation whereUpdatedAt($value)
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Components\ComponentArea\ComponentArea[] $componentAreas
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Testimonials\Models\TestimonialTranslation query()
 */
final class TestimonialTranslation extends AbstractTranslationModel implements HasComponentAreasInterface
{
    use HasComponentAreasTrait;

    protected $table = 'testimonial_translations';

    protected $fillable = ['slug', 'title', 'subtitle', 'quote', 'language_id', 'testimonial_id'];

    public function translatable():BelongsTo
    {
        return $this->belongsTo(Testimonial::class, 'testimonial_id');
    }
}