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/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');
    }
}