Init
This commit is contained in:
25
app/Models/Playlist.php
Normal file
25
app/Models/Playlist.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Playlist extends Model
|
||||
{
|
||||
/**
|
||||
* Belongs To A User.
|
||||
*/
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* Has Many Episodes.
|
||||
*/
|
||||
public function episodes(): HasMany
|
||||
{
|
||||
return $this->hasMany(PlaylistEpisode::class);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user