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
30
app/Media.php
Normal file
30
app/Media.php
Normal 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');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue