mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 18:20:48 +01:00
- Added StreamerController with index and show methods - Added StreamerPanelController with index, create, store, edit, update, and destroy methods - Created Streamer model with fillable attributes and platform-specific URL generation logic - Implemented migration for creating the streamers table
32 lines
765 B
PHP
32 lines
765 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('streamers', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->foreignId('champion_id')->constrained();
|
|
$table->enum('platform', ['twitch', 'youtube', 'kick', 'douyu', 'huya']);
|
|
$table->string('username');
|
|
$table->string('displayname');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('streamers');
|
|
}
|
|
};
|