$project]); Sprint::create($request->merge( ['business_id' => $business, 'project_id' => $project] )->except('_business_info')); return Business::info($business, true); } public function update($business, $project, $sprint, Request $request) { permit('projectSprints', ['project_id' => $project]); $sprint = Sprint::findOrFail($sprint); $sprint->update($request->except('_business_info')); return Business::info($business, true); } public function delete($business, $project, $sprint) { permit('projectSprints', ['project_id' => $project]); $sprint = Sprint::findOrFail($sprint); $sprint->delete(); return Business::info($business, true); } }