diff options
| author | horus | 2022-01-07 14:02:05 +0100 |
|---|---|---|
| committer | horus | 2022-01-07 14:02:12 +0100 |
| commit | 3fe0381d28d9c5844c82d908b77d3aa4b0aca737 (patch) | |
| tree | 2ce0641a2a78a2bfe84c6f576947279db6b68ad3 /app/Ingredient.php | |
| parent | bb95c3083b20687dcea427351270f0d835598fdb (diff) | |
| download | kategorischeraperitif-3fe0381d28d9c5844c82d908b77d3aa4b0aca737.tar.gz | |
first release of kategorischeraperitif.de
Diffstat (limited to 'app/Ingredient.php')
| -rw-r--r-- | app/Ingredient.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/Ingredient.php b/app/Ingredient.php new file mode 100644 index 0000000..67ef6ad --- /dev/null +++ b/app/Ingredient.php @@ -0,0 +1,19 @@ +<?php + +namespace App; + +use Illuminate\Database\Eloquent\Model; + +class Ingredient extends Model +{ + protected $table = "ingredient"; + protected $connection = 'mysql2'; + protected $fillable = [ + 'cocktail_id', + 'name', + ]; + + public function getCocktail() { + $this->belongsTo('App\Cocktail'); + } +} |
