File: D:/HostingSpaces/SBogers10/reiskick.komma.nl/app/Hotels/Models/HotelTranslation.php
<?php
namespace App\Hotels\Models;
use Komma\KMS\Components\ComponentArea\HasComponentAreasInterface;
use Komma\KMS\Components\ComponentArea\HasComponentAreasTrait;
use Komma\KMS\Core\HasSlugInterface;
use Komma\KMS\Core\SuggestSlugTrait;
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\Hotels\Models\Hotel $translatable
* @mixin \Eloquent
* @property int $id
* @property int $hotel_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\Hotels\Models\HotelTranslation whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation whereDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation whereLanguageId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation whereMetaDescription($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation whereMetaTitle($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation whereName($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation whereHotelId($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation whereSlug($value)
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation whereUpdatedAt($value)
* @property-read \Illuminate\Database\Eloquent\Collection|\App\Components\ComponentArea\ComponentArea[] $componentAreas
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|\App\Hotels\Models\HotelTranslation query()
*/
final class HotelTranslation extends AbstractTranslationModel
{
protected $table = 'hotel_translations';
protected $fillable = ['name', 'description', 'link', 'language_id', 'hotel_id'];
public function translatable():BelongsTo
{
return $this->belongsTo(Hotel::class, 'hotel_id');
}
}