spmn for moon updates
This commit is contained in:
@@ -186,12 +186,10 @@ class MoonsAdminController extends Controller
|
|||||||
//Form our array of strings for each system, planet, and moon combination.
|
//Form our array of strings for each system, planet, and moon combination.
|
||||||
foreach($moons as $m) {
|
foreach($moons as $m) {
|
||||||
$temp = $m->System . " - " . $m->Planet . " - " . $m->Moon . " - " . $m->StructureName;
|
$temp = $m->System . " - " . $m->Planet . " - " . $m->Moon . " - " . $m->StructureName;
|
||||||
|
$tempArr[$temp] = $temp;
|
||||||
array_push($spmn, $temp);
|
array_push($spmn, $tempArr);
|
||||||
}
|
}
|
||||||
|
|
||||||
dd($spmn);
|
|
||||||
|
|
||||||
//Return the view and the form from the blade display
|
//Return the view and the form from the blade display
|
||||||
//Pass the data to the view as well
|
//Pass the data to the view as well
|
||||||
return view('moons.admin.updatemoon')->with('spmn', $spmn);
|
return view('moons.admin.updatemoon')->with('spmn', $spmn);
|
||||||
|
|||||||
Reference in New Issue
Block a user