diff --git a/app/Http/Controllers/MiningTaxes/MiningTaxesAdminController.php b/app/Http/Controllers/MiningTaxes/MiningTaxesAdminController.php index 921473b37..0b1a932f5 100644 --- a/app/Http/Controllers/MiningTaxes/MiningTaxesAdminController.php +++ b/app/Http/Controllers/MiningTaxes/MiningTaxesAdminController.php @@ -91,14 +91,12 @@ class MiningTaxesAdminController extends Controller //Get the name of the structure from the table $moon = Observer::where([ 'observer_id' => $request->structure, - ])->get(); - - dd($moon->observer_name); + ])->get()->toArray(); //Save the mining operation into the database $operation = new MiningOperation; $operation->structure_id = $request->structure; - $operation->structure_name = $moon->observer_name; + $operation->structure_name = $moon->['observer_name']; $operation->authorized_by_id = auth()->user()->getId(); $operation->authorized_by_name = auth()->user()->getName(); $operation->operation_name = $request->name;