public function update(JobRequest $request, Job $job)
    {
        try {
            $attributes = $request->all();

            $job->update($attributes);
            return $this->response->message(trans('messages.success.updated', ['Module' => trans('career::job.name')]))
                ->code(204)
                ->status('success')
                ->url(guard_url('career/job/' . $job->getRouteKey()))
                ->redirect();
        } catch (Exception $e) {
            return $this->response->message($e->getMessage())
                ->code(400)
                ->status('error')
                ->url(guard_url('career/job/' . $job->getRouteKey()))
                ->redirect();
        }

    }
public function update(JobRequest $request, Job $job)
    {
        try {
            $attributes = $request->all();

            $job->update($attributes);
            return $this->response->message(trans('messages.success.updated', ['Module' => trans('career::job.name')]))
                ->code(204)
                ->status('success')
                ->url(guard_url('career/job/' . $job->getRouteKey()))
                ->redirect();
        } catch (Exception $e) {
            return $this->response->message($e->getMessage())
                ->code(400)
                ->status('error')
                ->url(guard_url('career/job/' . $job->getRouteKey()))
                ->redirect();
        }

    }
public function update ( JobRequest $ request , Job $ job ) { try { $ attributes = $ request -> all ( ) ; $ job -> update ( $ attributes ) ; return $ this -> response -> message ( trans ( 'messages.success.updated' , [ 'Module' => trans ( 'career::job.name' ) ] ) ) -> code ( 204 ) -> status ( 'success' ) -> url ( guard_url ( 'career/job/' . $ job -> getRouteKey ( ) ) ) -> redirect ( ) ; } catch ( Exception $ e ) { return $ this -> response -> message ( $ e -> getMessage ( ) ) -> code ( 400 ) -> status ( 'error' ) -> url ( guard_url ( 'career/job/' . $ job -> getRouteKey ( ) ) ) -> redirect ( ) ; } }
Update the job.

@param Request $request
@param Model   $job

@return Response
Update the job .