2024-05-19 05:49:42 +00:00
|
|
|
<?php
|
|
|
|
|
2024-05-31 05:40:34 +00:00
|
|
|
namespace App\Models;
|
2024-05-19 05:49:42 +00:00
|
|
|
|
|
|
|
use App\Casts\Podcast\PodcastStateCast;
|
|
|
|
use App\Values\Podcast\PodcastState;
|
|
|
|
use Carbon\Carbon;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\Pivot;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @property Carbon $created_at
|
2024-06-13 14:46:13 +00:00
|
|
|
* @property Carbon $updated_at
|
2024-05-19 05:49:42 +00:00
|
|
|
* @property PodcastState $state
|
|
|
|
*/
|
|
|
|
class PodcastUserPivot extends Pivot
|
|
|
|
{
|
|
|
|
protected $table = 'podcast_user';
|
|
|
|
|
|
|
|
protected $guarded = [];
|
|
|
|
protected $appends = ['meta'];
|
|
|
|
|
|
|
|
protected $casts = [
|
|
|
|
'state' => PodcastStateCast::class,
|
|
|
|
];
|
|
|
|
}
|