name('home'); Route::get('/movies/{page?}', [MovieController::class, 'movies'])->name('movies'); Route::get('/movies/{genre}/{page?}', [MovieController::class, 'genres'])->name('movies.genre'); Route::get('/tv-shows/{page?}', [ShowController::class, 'shows'])->name('shows'); Route::get('/movie/{id}/{slug}', [MovieController::class, 'index'])->name('movie'); Route::group(['prefix' => '/series'], function(){ Route::get('/{id}/{slug}', [ShowController::class, 'index'])->name('show'); Route::get('/{id}/{slug}/season/{season}', [ShowController::class, 'season'])->name('show.season'); Route::get('/{id}/{slug}/season/{season}/episode/{episode}', [ShowController::class, 'episode'])->name('show.episode'); }); Route::get('/person/{person_id}/{slug}', [PeopleController::class, 'index'])->name('person'); Route::get('/search', [HomeController::class, 'search'])->name('search'); Route::fallback([HomeController::class, 'index'])->name('fallback');