Pony.fm/app/PinnedPlaylist.php

20 lines
362 B
PHP
Raw Normal View History

2015-08-30 14:29:12 +02:00
<?php
namespace Poniverse\Ponyfm;
2015-08-31 14:35:47 +02:00
2015-08-30 14:29:12 +02:00
use Illuminate\Database\Eloquent\Model;
class PinnedPlaylist extends Model
{
protected $table = 'pinned_playlists';
public function user()
{
return $this->belongsTo('Poniverse\Ponyfm\User');
2015-08-30 14:29:12 +02:00
}
public function playlist()
{
return $this->belongsTo('Poniverse\Ponyfm\Playlist');
2015-08-30 14:29:12 +02:00
}
}