This commit is contained in:
Kevin Adametz 2024-08-05 12:05:24 +02:00
parent 04d677d37a
commit bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions

View file

@ -0,0 +1,55 @@
<?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);
}
}