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/shop.komma.nl/app/Buttons/Models/ButtonTranslation.php
<?php
namespace App\Buttons\Models;

use Komma\KMS\Core\AbstractTranslationModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

/**
 * App\Buttons\Models\ButtonTranslation
 *
 * @property int $id
 * @property int $button_id
 * @property int $language_id
 * @property string|null $label
 * @property string|null $url
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \Komma\KMS\Globalization\Languages\Models\Language $language
 * @property-read \App\Buttons\Models\Button $translatable
 * @method static \Illuminate\Database\Eloquent\Builder|ButtonTranslation newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|ButtonTranslation newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|ButtonTranslation query()
 * @method static \Illuminate\Database\Eloquent\Builder|ButtonTranslation whereButtonId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ButtonTranslation whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ButtonTranslation whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ButtonTranslation whereLabel($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ButtonTranslation whereLanguageId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ButtonTranslation whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|ButtonTranslation whereUrl($value)
 * @mixin \Eloquent
 */
final class ButtonTranslation extends AbstractTranslationModel
{
    protected $table = 'button_translations';

    protected $fillable = ['label', 'url', 'language_id', 'button_id'];

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