Starting work on adding a media endpoint

This commit is contained in:
Jonny Barnes 2017-03-09 22:00:29 +00:00
parent 602e09d4b8
commit bd57ce56d4
6 changed files with 125 additions and 19 deletions

View file

@ -53,6 +53,16 @@ class Note extends Model
return $this->belongsTo('App\Place');
}
/**
* Define the relationship with media.
*
* @return void
*/
public function media()
{
return $this->hasMany('App\Media');
}
/**
* We shall set a blacklist of non-modifiable model attributes.
*