diff --git a/app/Http/Controllers/Blacklist/BlacklistController.php b/app/Http/Controllers/Blacklist/BlacklistController.php index dd54b00f3..a207b15e4 100644 --- a/app/Http/Controllers/Blacklist/BlacklistController.php +++ b/app/Http/Controllers/Blacklist/BlacklistController.php @@ -123,9 +123,7 @@ class BlacklistController extends Controller //If the count for the blacklist is greater than 0, then get the details, and send it to the view if($blacklistCount > 0) { //Try to find the user in the blacklist - $blacklist = BlacklistUser::where([ - 'name' => $request->name, - ])->first(); + $blacklist = BlacklistUser::where(['name', 'like', $request->name])->get(); //Send the data to the view return view('blacklist.list')->with('blacklist', $blacklist)