progress
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user