/**
  * Remove the specified Profile from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $profile = $this->profileRepository->find($id);
     if (empty($profile)) {
         Flash::error('Profile not found');
         return redirect(route('profiles.index'));
     }
     $this->profileRepository->delete($id);
     Flash::success('Profile deleted successfully.');
     return redirect(route('profiles.index'));
 }
 /**
  * Remove the specified Profile from storage.
  * DELETE /profiles/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->profileRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "Profile deleted successfully");
 }