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