mining operations
This commit is contained in:
@@ -91,14 +91,12 @@ class MiningTaxesAdminController extends Controller
|
|||||||
//Get the name of the structure from the table
|
//Get the name of the structure from the table
|
||||||
$moon = Observer::where([
|
$moon = Observer::where([
|
||||||
'observer_id' => $request->structure,
|
'observer_id' => $request->structure,
|
||||||
])->get();
|
])->get()->toArray();
|
||||||
|
|
||||||
dd($moon->observer_name);
|
|
||||||
|
|
||||||
//Save the mining operation into the database
|
//Save the mining operation into the database
|
||||||
$operation = new MiningOperation;
|
$operation = new MiningOperation;
|
||||||
$operation->structure_id = $request->structure;
|
$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_id = auth()->user()->getId();
|
||||||
$operation->authorized_by_name = auth()->user()->getName();
|
$operation->authorized_by_name = auth()->user()->getName();
|
||||||
$operation->operation_name = $request->name;
|
$operation->operation_name = $request->name;
|
||||||
|
|||||||
Reference in New Issue
Block a user