This commit is contained in:
2018-11-12 23:22:15 -06:00
parent 90b2ca7d9f
commit 99ebbc8e05

View File

@@ -72,9 +72,9 @@ class FleetsController extends Controller
} }
} }
public function addPilot(Request $request, $id) { public function addPilot($id) {
//Retrieve the fleet from the session //Retrieve the fleet from the session
$fleet = $request->session()->get('fleet'); $fleet = session('fleet');
dd($fleet); dd($fleet);
//Add a pilot to the fleet //Add a pilot to the fleet
$error = $fleet->AddPilot(Auth::user()->character_id); $error = $fleet->AddPilot(Auth::user()->character_id);