mining operations

This commit is contained in:
2021-06-04 00:27:47 +09:00
parent 48b5955e16
commit ddda064033

View File

@@ -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;