public function destroy(ResumeRequest $request, Resume $resume)
    {
        try {

            $resume->delete();
            return $this->response->message(trans('messages.success.deleted', ['Module' => trans('career::resume.name')]))
                ->code(202)
                ->status('success')
                ->url(guard_url('career/resume/0'))
                ->redirect();

        } catch (Exception $e) {

            return $this->response->message($e->getMessage())
                ->code(400)
                ->status('error')
                ->url(guard_url('career/resume/' . $resume->getRouteKey()))
                ->redirect();
        }

    }
public function destroy(ResumeRequest $request, Resume $resume)
    {
        try {

            $resume->delete();
            return $this->response->message(trans('messages.success.deleted', ['Module' => trans('career::resume.name')]))
                ->code(202)
                ->status('success')
                ->url(guard_url('career/resume/0'))
                ->redirect();

        } catch (Exception $e) {

            return $this->response->message($e->getMessage())
                ->code(400)
                ->status('error')
                ->url(guard_url('career/resume/' . $resume->getRouteKey()))
                ->redirect();
        }

    }
public function destroy ( ResumeRequest $ request , Resume $ resume ) { try { $ resume -> delete ( ) ; return $ this -> response -> message ( trans ( 'messages.success.deleted' , [ 'Module' => trans ( 'career::resume.name' ) ] ) ) -> code ( 202 ) -> status ( 'success' ) -> url ( guard_url ( 'career/resume/0' ) ) -> redirect ( ) ; } catch ( Exception $ e ) { return $ this -> response -> message ( $ e -> getMessage ( ) ) -> code ( 400 ) -> status ( 'error' ) -> url ( guard_url ( 'career/resume/' . $ resume -> getRouteKey ( ) ) ) -> redirect ( ) ; } }
Remove the resume.

@param Model   $resume

@return Response
Remove the resume .