From c0d65d55d173adbc758a23a552962c6eaabd82d1 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Tue, 25 May 2021 01:55:10 +0900 Subject: [PATCH] testing new mining tax --- app/Http/Controllers/Test/TestController.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Test/TestController.php b/app/Http/Controllers/Test/TestController.php index 2a84fb913..835e638e7 100644 --- a/app/Http/Controllers/Test/TestController.php +++ b/app/Http/Controllers/Test/TestController.php @@ -76,6 +76,7 @@ class TestController extends Controller //Declare variables $mailDelay = 15; $config = config('esi'); + $mains = new Collection; /** * This section will determine if users are mains or alts of a main. @@ -91,7 +92,13 @@ class TestController extends Controller //Get the unique character ids from the ledgers in the previous statement $tempMains = $tempMains->unique()->values()->all(); - dd($tempMains); + for($i = 0; $i < sizeof($tempMains); $i++) { + if(UserAlt::where(['character_id' => $tempMains[$i]])->count() == 0) { + $mains->push($tempMains[$i]); + } + } + + dd($mains); /** * For each of the users, let's determine if there are any ledgers,