/** * Delete profile field. * * @param int $projectId * @param int $profileId * * @return Response */ public function destroy($projectId, $profileId) { $project = Project::findOrFail($projectId); $profile = ProjectProfile::findOrFail($profileId); $profile->delete(); return redirect()->route('project.show', ['project' => $project->id]); }