app/Http/Controllers/Client/WorkRequest/Controller.php
public function update(WorkRequest $request, $id)
    {
        $workRequest = $this->workRequest->update($request, $id);

        if ($workRequest) {
            $message = 'Successfully updated work request.';

            return redirect()->route('maintenance.client.work-requests.show', [$workRequest->id])->withSuccess($message);
        } else {
            $message = 'There was an issue updating your work request. Please try again.';

            return redirect()->route('maintenance.client.work-requests.edit', [$id])->withErrors($message);
        }
    }
public function update(WorkRequest $request, $id)
    {
        $workRequest = $this->workRequest->update($request, $id);

        if ($workRequest) {
            $message = 'Successfully updated work request.';

            return redirect()->route('maintenance.client.work-requests.show', [$workRequest->id])->withSuccess($message);
        } else {
            $message = 'There was an issue updating your work request. Please try again.';

            return redirect()->route('maintenance.client.work-requests.edit', [$id])->withErrors($message);
        }
    }
Updates a users work request.

@param WorkRequest $request
@param int|string  $id

@return \Illuminate\Http\RedirectResponse