public function run()
 {
     Vehicle::create(array('vehicle' => 'Falcon 1'));
     Vehicle::create(array('vehicle' => 'Falcon 9 v1.0'));
     Vehicle::create(array('vehicle' => 'Falcon 9 v1.1'));
     Vehicle::create(array('vehicle' => 'Falcon 9 v1.2'));
     Vehicle::create(array('vehicle' => 'Falcon Heavy'));
 }
 public function getCreate()
 {
     JavaScript::put(['destinations' => Destination::all(['destination_id', 'destination'])->toArray(), 'missionTypes' => MissionType::all(['name', 'mission_type_id'])->toArray(), 'launchSites' => Location::where('type', 'Launch Site')->get()->toArray(), 'landingSites' => Location::where('type', 'Landing Site')->orWhere('type', 'ASDS')->get()->toArray(), 'vehicles' => Vehicle::all(['vehicle', 'vehicle_id'])->toArray(), 'parts' => Part::whereDoesntHave('partFlights', function ($q) {
         $q->where('landed', false);
     })->get()->toArray(), 'spacecraft' => Spacecraft::all()->toArray(), 'astronauts' => Astronaut::all()->toArray()]);
     return view('missions.create');
 }