$episodes]); }); Route::get('/detail/{id}', function(int $id) { $ep = Episode::find($id); $title = $ep->title; $subtitles = $ep->subtitles; $mediacomposition = json_decode($ep->mediacomposition, 1); $parser = new Podlove\Webvtt\Parser(); $subtitles = $parser->parse($subtitles); //dump($subtitles); return view('detail', ['title' => $title, 'subtitles' => $subtitles, 'mediacomposition' => $mediacomposition]); });