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