first commit
This commit is contained in:
commit
405df0a122
3083 changed files with 69203 additions and 0 deletions
50
dev/Models/CategoryTranslation.php
Normal file
50
dev/Models/CategoryTranslation.php
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
<?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
|
||||
* @package App\Models
|
||||
* @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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue