08 2024
This commit is contained in:
parent
04d677d37a
commit
bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions
55
app/Models/TransCategory.php
Normal file
55
app/Models/TransCategory.php
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
<?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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue