diff --git a/app/Http/Controllers/Blacklist/BlacklistController.php b/app/Http/Controllers/Blacklist/BlacklistController.php index f181ee924..2b3348043 100644 --- a/app/Http/Controllers/Blacklist/BlacklistController.php +++ b/app/Http/Controllers/Blacklist/BlacklistController.php @@ -116,14 +116,18 @@ class BlacklistController extends Controller 'parameter' => 'required', ]); + $blacklist = new BlacklistUser; + $blacklistName = DB::table('alliance_blacklist')->where('name', 'like', $request->parameter . "%")->get(); $blacklistAlt = DB::table('alliance_blacklist')->where('alts', 'like', $request->parameter . "%")->get(); $blacklistReason = DB::table('alliance_blacklist')->where('reason', 'like', $request->paraemter . "%")->get(); - $blacklist = $blacklistName; + $blacklist->push($blacklistName); $blacklist->push($blacklistAlt); $blacklist->push($blacklistReason); + dd($blacklist); + $blacklistCount = sizeof($blacklist); //If the count for the blacklist is greater than 0, then get the details, and send it to the view