From b661102979b0ea2a59f8ff96e5d4840103081993 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Thu, 5 Nov 2020 17:14:32 +0100 Subject: [PATCH] - Fix Codes count --- app/Http/Controllers/bo/CodesController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/bo/CodesController.php b/app/Http/Controllers/bo/CodesController.php index 87fa53e..250b301 100644 --- a/app/Http/Controllers/bo/CodesController.php +++ b/app/Http/Controllers/bo/CodesController.php @@ -10,7 +10,7 @@ use Illuminate\Http\Request; class CodesController extends Controller { public function index() { - $nbCodeBase = Codes::all()->count(); + $nbCodeBase = Codes::count(); $nbCodeUsed = Codes::where('code_used', 1)->count(); return view('bo.codes.index', compact('nbCodeBase', 'nbCodeUsed')); }