mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
feat: Add streamers to champion show view
- Added loading of streamers data in the champion show view. - Updated ChampionController to load streamers for display.
This commit is contained in:
@@ -14,7 +14,7 @@ class StreamerPanelController extends Controller
|
||||
public function index()
|
||||
{
|
||||
return view('streamerpanel.index', [
|
||||
'streamers' => Streamer::all(),
|
||||
'streamers' => Streamer::with('champion')->get(),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -33,8 +33,7 @@ class StreamerPanelController extends Controller
|
||||
*/
|
||||
public function store(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'champion_id' => 'required|exists:champions,id',
|
||||
$request->validate(['champion_id' => 'required|exists:champions,champion_id',
|
||||
'platform' => 'required|in:twitch,youtube,kick,douyu,huya',
|
||||
'username' => 'required|string',
|
||||
'displayname' => 'required|string',
|
||||
|
||||
Reference in New Issue
Block a user