summaryrefslogtreecommitdiff
path: root/app/Cocktail.php
diff options
context:
space:
mode:
authorhorus2022-01-07 14:02:05 +0100
committerhorus2022-01-07 14:02:12 +0100
commit3fe0381d28d9c5844c82d908b77d3aa4b0aca737 (patch)
tree2ce0641a2a78a2bfe84c6f576947279db6b68ad3 /app/Cocktail.php
parentbb95c3083b20687dcea427351270f0d835598fdb (diff)
downloadkategorischeraperitif-3fe0381d28d9c5844c82d908b77d3aa4b0aca737.tar.gz
first release of kategorischeraperitif.de
Diffstat (limited to 'app/Cocktail.php')
-rw-r--r--app/Cocktail.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/Cocktail.php b/app/Cocktail.php
new file mode 100644
index 0000000..31f40c1
--- /dev/null
+++ b/app/Cocktail.php
@@ -0,0 +1,21 @@
+<?php
+
+namespace App;
+
+use Illuminate\Database\Eloquent\Model;
+
+class Cocktail extends Model
+{
+ protected $table = "cocktail";
+ protected $connection = 'mysql2';
+
+ protected $fillable = [
+ "image_url",
+ "name"
+ ];
+
+ public function getIngredients() {
+ return $this->hasMany('App\Ingredient');
+ }
+}
+