diff --git a/app/Http/Controllers/Blacklist/BlacklistController.php b/app/Http/Controllers/Blacklist/BlacklistController.php index 6b5303a4e..cacd0fd53 100644 --- a/app/Http/Controllers/Blacklist/BlacklistController.php +++ b/app/Http/Controllers/Blacklist/BlacklistController.php @@ -45,12 +45,13 @@ class BlacklistController extends Controller if($count === 0) { //Get the character id from the universe end point $charId = $lookup->CharacterNameToId($request->name); - + //Insert the character into the blacklist table BlacklistUser::insert([ 'character_id' => $charId, 'name' => $request->name, 'reason' => $request->reason, + 'alts' => $request->alts, 'lister_id' => auth()->user()->getId(), 'lister_name' => auth()->user()->getName(), ]); diff --git a/app/Models/Charcter/BlacklistUser.php b/app/Models/Charcter/BlacklistUser.php index a5bd6534d..702a16f9f 100644 --- a/app/Models/Charcter/BlacklistUser.php +++ b/app/Models/Charcter/BlacklistUser.php @@ -21,5 +21,8 @@ class BlacklistUser extends Model 'character_id', 'name', 'reason', + 'alts', + 'lister_id', + 'lister_name', ]; } diff --git a/database/migrations/2019_10_28_074429_create_blacklist_table.php b/database/migrations/2019_10_28_074429_create_blacklist_table.php index f2edd7a52..57fc3b4c4 100644 --- a/database/migrations/2019_10_28_074429_create_blacklist_table.php +++ b/database/migrations/2019_10_28_074429_create_blacklist_table.php @@ -19,6 +19,7 @@ class CreateBlacklistTable extends Migration $table->string('character_id')->unique(); $table->string('name')->unique(); $table->text('reason'); + $table->text('alts'); $table->string('lister_id'); $table->string('lister_name'); $table->timestamps(); diff --git a/resources/views/blacklist/list.blade.php b/resources/views/blacklist/list.blade.php index c17e804b7..ae513aafb 100644 --- a/resources/views/blacklist/list.blade.php +++ b/resources/views/blacklist/list.blade.php @@ -12,6 +12,7 @@