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