summaryrefslogtreecommitdiff
path: root/app/Cocktail.php
blob: 31f40c1ac6f463fc57389823051a7d9962ee60ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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');
	}
}