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/brameda/brameda.nl/app/Komma/Jobs/Models/JobTranslation.php
<?php
namespace App\Komma\Jobs\Models;

use App\Komma\Components\ComponentArea\HasComponentAreasInterface;
use App\Komma\Components\ComponentArea\HasComponentAreasTrait;
use App\Komma\Documents\DocumentsTrait;
use App\Komma\Documents\Kms\DocumentableInterface;
use App\Komma\Kms\Core\AbstractTranslationModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

/**
 * Class PageTranslation
 *
 * @package App\Komma\Pages\Models
 * @property int page_id
 * @property-read \App\Komma\Languages\Models\Language $language
 * @property-read \App\Komma\Jobs\Models\Job $translatable
 * @mixin \Eloquent
 * @property int $id
 * @property int $job_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\Komma\Jobs\Models\JobTranslation whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation whereDescription($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation whereLanguageId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation whereMetaDescription($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation whereMetaTitle($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation whereJobId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation whereSlug($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation whereUpdatedAt($value)
 * @property-read \Illuminate\Database\Eloquent\Collection|\App\Komma\Components\ComponentArea\ComponentArea[] $componentAreas
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Komma\Jobs\Models\JobTranslation query()
 */
class JobTranslation extends AbstractTranslationModel implements DocumentableInterface, HasComponentAreasInterface
{
    use DocumentsTrait;
    use HasComponentAreasTrait;

    protected $table = 'job_translations';

    protected $fillable = ['slug', 'name', 'description', 'meta_description', 'language_id', 'job_id',];

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