blacklist modification

This commit is contained in:
2019-12-01 02:10:33 -06:00
parent 0f59440ce4
commit 5f6c8f4085
4 changed files with 12 additions and 1 deletions

View File

@@ -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(),
]);