blacklist search
This commit is contained in:
@@ -116,23 +116,15 @@ class BlacklistController extends Controller
|
|||||||
'parameter' => 'required',
|
'parameter' => 'required',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$blacklist = null;
|
$blacklist = DB::table('alliance_blacklist')->where('name', 'like', $request->parameter . "%")
|
||||||
|
->orWhere('alts', 'like', $request->parameter . "%")
|
||||||
$blacklistName = DB::table('alliance_blacklist')->where('name', 'like', $request->parameter . "%")->get();
|
->orWhere('reason', 'like', $request->parameter . "%")
|
||||||
$blacklistAlt = DB::table('alliance_blacklist')->where('alts', 'like', $request->parameter . "%")->get();
|
->get();
|
||||||
$blacklistReason = DB::table('alliance_blacklist')->where('reason', 'like', $request->paraemter . "%")->get();
|
|
||||||
|
|
||||||
$blacklist->push($blacklistName);
|
|
||||||
$blacklist->push($blacklistAlt);
|
|
||||||
$blacklist->push($blacklistReason);
|
|
||||||
|
|
||||||
dd($blacklist);
|
|
||||||
|
|
||||||
$blacklistCount = sizeof($blacklist);
|
$blacklistCount = sizeof($blacklist);
|
||||||
|
|
||||||
//If the count for the blacklist is greater than 0, then get the details, and send it to the view
|
//If the count for the blacklist is greater than 0, then get the details, and send it to the view
|
||||||
if($blacklistCount > 0) {
|
if($blacklistCount > 0) {
|
||||||
$blacklist = null;
|
|
||||||
|
|
||||||
//Send the data to the view
|
//Send the data to the view
|
||||||
return view('blacklist.list')->with('blacklist', $blacklist)
|
return view('blacklist.list')->with('blacklist', $blacklist)
|
||||||
|
|||||||
Reference in New Issue
Block a user