Pony.fm/app/PinnedPlaylist.php

20 lines
323 B
PHP
Raw Normal View History

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