spmn for moon updates

This commit is contained in:
2019-06-04 21:00:45 -05:00
parent dbece52cc3
commit 35357b8dc7

View File

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