add client blacklist from DB

This commit is contained in:
Jay Sizzla
2022-09-07 08:45:10 +02:00
parent 480aad1bcf
commit 32c448e99b
11 changed files with 411 additions and 8 deletions
+5 -4
View File
@@ -13,6 +13,7 @@
namespace App\Http\Controllers;
use App\Models\BlacklistCLient;
use App\Models\Group;
use App\Models\Internal;
use App\Models\Page;
@@ -63,13 +64,13 @@ class PageController extends Controller
}
/**
* Show Blacklist Page.
* Show Client-Blacklist Page.
*/
public function blacklist(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
public function clientblacklist(): \Illuminate\Contracts\View\Factory|\Illuminate\View\View
{
$clients = \config('client-blacklist.clients', []);
$clients = BlacklistClient::get();
return \view('page.blacklist', ['clients' => $clients]);
return \view('page.blacklist.client', ['clients' => $clients]);
}
/**