This commit is contained in:
2025-02-10 01:58:12 +02:00
parent 25d99e7b72
commit 87bbfc33d3
242 changed files with 38662 additions and 99 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
namespace App\Http\Controllers;
use App\Models\Show;
use Illuminate\Http\Request;
class ShowController extends Controller
{
public function index()
{
$shows = Show::paginate(48);
return view('show.index', compact('shows'));
}
public function show(string $slug)
{
$show = Show::with('posters', 'backdrops', 'externalIds', 'networks', 'genres', 'productionCompanies')->where('slug', $slug)->first();
$comments = [];
return view('show.show', compact('show', 'comments'));
}
}