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