testing moon worth job
This commit is contained in:
@@ -54,16 +54,8 @@ class TestController extends Controller
|
|||||||
$ores = AllianceMoonOre::where([
|
$ores = AllianceMoonOre::where([
|
||||||
'moon_id' => $moon->moon_id,
|
'moon_id' => $moon->moon_id,
|
||||||
])->get(['ore_id', 'quantity'])->toArray();
|
])->get(['ore_id', 'quantity'])->toArray();
|
||||||
|
|
||||||
dd($ores);
|
|
||||||
|
|
||||||
//one of these two ways will work
|
return view('test.moonworth.moon')->with('ores', $ores);
|
||||||
$worth1 = $mHelper->MoonTotalWorth($ores[0][0], $ores[0][1], $ores[1][0], $ores[1][1], $ores[2][0], $ores[2][1], $ores[3][0], $ores[3][1]);
|
|
||||||
|
|
||||||
$worth2 = $mHelper->MoonTotalWorth($ores[0], $ores[1], $ores[2], $ores[3], $ores[4], $ores[5], $ores[6], $ores[7]);
|
|
||||||
|
|
||||||
return view('test.moonworth.moon')->with('worth1', $worth1)
|
|
||||||
->with('worth2', $worth2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
@extends('layouts.user.dashb4')
|
@extends('layouts.user.dashb4')
|
||||||
@section('content')
|
@section('content')
|
||||||
{{ var_dump($worth1) }}
|
{{ var_dump($ores) }}
|
||||||
<br>
|
|
||||||
{{ var_dump($worth2) }}
|
|
||||||
@endsection
|
@endsection
|
||||||
Reference in New Issue
Block a user