Backend for songs.zachdecook.com
Diffstat (limited to 'laravel/app/Song.php')
-rw-r--r--laravel/app/Song.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/laravel/app/Song.php b/laravel/app/Song.php
index 876617f..0565ff6 100644
--- a/laravel/app/Song.php
+++ b/laravel/app/Song.php
@@ -7,5 +7,8 @@ use Illuminate\Database\Eloquent\Model;
class Song extends Model
{
public $fillable = ['number', 'title', 'author', 'key', 'text'];
- //
+ public function playlists()
+ {
+ return $this->belongsToMany('App\Playlist');
+ }
}