mivita/dev/app-bak/Models/TransCategory.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 TransCategory
*
* @property int $id
* @property string $language
* @property int $categorie_id
* @property string|null $key
* @property string|null $value
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property Category $category
* @package App\Models
* @method static \Illuminate\Database\Eloquent\Builder|TransCategory newModelQuery()
* @method static \Illuminate\Database\Eloquent\Builder|TransCategory newQuery()
* @method static \Illuminate\Database\Eloquent\Builder|TransCategory query()
* @method static \Illuminate\Database\Eloquent\Builder|TransCategory whereCategorieId($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransCategory whereCreatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransCategory whereId($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransCategory whereKey($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransCategory whereLanguage($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransCategory whereUpdatedAt($value)
* @method static \Illuminate\Database\Eloquent\Builder|TransCategory whereValue($value)
* @mixin \Eloquent
*/
class TransCategory extends Model
{
protected $table = 'trans_categories';
protected $casts = [
'categorie_id' => 'int'
];
protected $fillable = [
'language',
'categorie_id',
'key',
'value'
];
public function category()
{
return $this->belongsTo(Category::class, 'categorie_id');
}
}