episodes() ->where('start', '<', now()->subMinutes(10)) ->orderBy('start', 'DESC') ->first(); } public function episodes() { return $this->belongsToMany(Episode::class) ->using(Restream::class) ->withPivot('accept_comms', 'accept_tracker'); } public function organization() { return $this->belongsTo(Organization::class); } protected $casts = [ 'chat_commands' => 'array', 'languages' => 'array', ]; protected $hidden = [ 'created_at', 'ext_id', 'updated_at', ]; }