50 lines
1.4 KiB
PHP
50 lines
1.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Created by Reliese Model.
|
|
*/
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Class PaymentOptionTranslation
|
|
*
|
|
* @property int $id
|
|
* @property string $name
|
|
* @property string|null $description
|
|
* @property string $lang
|
|
* @property PaymentOption $payment_option
|
|
* @package App\Models
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation newModelQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation newQuery()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation query()
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation whereDescription($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation whereId($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation whereLang($value)
|
|
* @method static \Illuminate\Database\Eloquent\Builder|PaymentOptionTranslation whereName($value)
|
|
* @mixin \Eloquent
|
|
*/
|
|
class PaymentOptionTranslation extends Model
|
|
{
|
|
protected $table = 'payment_option_translation';
|
|
public $incrementing = false;
|
|
public $timestamps = false;
|
|
|
|
protected $casts = [
|
|
'id' => 'int'
|
|
];
|
|
|
|
protected $fillable = [
|
|
'id',
|
|
'name',
|
|
'description',
|
|
'lang'
|
|
];
|
|
|
|
public function payment_option()
|
|
{
|
|
return $this->belongsTo(PaymentOption::class, 'id');
|
|
}
|
|
}
|