From 1dd6b73632381fff51ec007e455a40a929297a88 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Fri, 4 Jun 2021 00:29:50 +0900 Subject: [PATCH] mining operations --- .../Controllers/MiningTaxes/MiningTaxesAdminController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/MiningTaxes/MiningTaxesAdminController.php b/app/Http/Controllers/MiningTaxes/MiningTaxesAdminController.php index 49897646b..6e116c80b 100644 --- a/app/Http/Controllers/MiningTaxes/MiningTaxesAdminController.php +++ b/app/Http/Controllers/MiningTaxes/MiningTaxesAdminController.php @@ -89,14 +89,14 @@ class MiningTaxesAdminController extends Controller ]); //Get the name of the structure from the table - $moon = Observer::where([ + $m = Observer::where([ 'observer_id' => $request->structure, - ])->get()->toArray(); + ])->get(); //Save the mining operation into the database $operation = new MiningOperation; $operation->structure_id = $request->structure; - $operation->structure_name = $moon['observer_name']; + $operation->structure_name = $m->observer_name; $operation->authorized_by_id = auth()->user()->getId(); $operation->authorized_by_name = auth()->user()->getName(); $operation->operation_name = $request->name;