From 82580edb8cebfbfc2b8bc96016bd76dfc3a525ab Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 6 Dec 2019 22:23:50 -0600 Subject: [PATCH] results for blacklist search --- app/Http/Controllers/Blacklist/BlacklistController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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