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:
@@ -13,11 +13,16 @@ return new class extends Migration
|
||||
{
|
||||
Schema::create('streamers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('champion_id')->constrained();
|
||||
$table->integer('champion_id');
|
||||
$table->enum('platform', ['twitch', 'youtube', 'kick', 'douyu', 'huya']);
|
||||
$table->string('username');
|
||||
$table->string('displayname');
|
||||
|
||||
$table->foreign('champion_id')->references('champion_id')->on('champions')->onDelete('cascade');
|
||||
|
||||
$table->timestamps();
|
||||
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user