progress
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Season;
|
||||
use App\Models\Show;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
@@ -20,6 +21,8 @@ class ShowController extends Controller
|
||||
|
||||
$comments = [];
|
||||
|
||||
return view('show.show', compact('show', 'comments'));
|
||||
$seasons = Season::where('show_id', $show->id)->orderBy('season_number', 'ASC')->get();
|
||||
|
||||
return view('show.show', compact('show', 'comments', 'seasons'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user