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

30
app/Media.php Normal file
View file

@ -0,0 +1,30 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Media extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'media_endpoint';
/**
* Our primaru key is a UUID value, therefore not incrementing.
*
* @var boolean
*/
protected $incrementing = false;
/**
* Get the note that owns this media.
*/
public function note()
{
return $this->belongsTo('App\Note');
}
}