mirror of
https://github.com/koel/koel
synced 2024-12-20 09:33:23 +00:00
24 lines
472 B
PHP
24 lines
472 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Casts\Podcast\PodcastStateCast;
|
|
use App\Values\Podcast\PodcastState;
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Eloquent\Relations\Pivot;
|
|
|
|
/**
|
|
* @property Carbon $created_at
|
|
* @property PodcastState $state
|
|
*/
|
|
class PodcastUserPivot extends Pivot
|
|
{
|
|
protected $table = 'podcast_user';
|
|
|
|
protected $guarded = [];
|
|
protected $appends = ['meta'];
|
|
|
|
protected $casts = [
|
|
'state' => PodcastStateCast::class,
|
|
];
|
|
}
|