Starting work on adding a media endpoint
This commit is contained in:
parent
602e09d4b8
commit
bd57ce56d4
6 changed files with 125 additions and 19 deletions
10
app/Note.php
10
app/Note.php
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue