mivita/dev/app-bak/Models/TransShipping.php
2025-10-20 17:42:08 +02:00

55 lines
1.6 KiB
PHP

<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
/**
* Class TransShipping
*
* @property int $id
* @property string $language
* @property int $shipping_id
* @property string|null $key
* @property string|null $value
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property Shipping $shipping
* @package App\Models
* @method static \Illuminate\Database\Eloquent\Builder|TransShipping newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|TransShipping newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|TransShipping query()
* @method static \Illuminate\Database\Eloquent\Builder|TransShipping whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransShipping whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransShipping whereKey($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransShipping whereLanguage($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransShipping whereShippingId($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransShipping whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransShipping whereValue($value)
* @mixin \Eloquent
*/
class TransShipping extends Model
{
protected $table = 'trans_shippings';
protected $casts = [
'shipping_id' => 'int'
];
protected $fillable = [
'language',
'shipping_id',
'key',
'value'
];
public function shipping()
{
return $this->belongsTo(Shipping::class);
}
}