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

        if ($workRequest) {
            $message = 'Successfully created work request. You will receive a response shortly.';

            return redirect()->route('maintenance.client.work-requests.index')->withSuccess($message);
        } else {
            $message = 'There was an issue creating a work request. Please try again.';

            return redirect()->route('maintenance.client.work-requests.create')->withErrors($message);
        }
    }
public function store(WorkRequest $request)
    {
        $workRequest = $this->workRequest->create($request);

        if ($workRequest) {
            $message = 'Successfully created work request. You will receive a response shortly.';

            return redirect()->route('maintenance.client.work-requests.index')->withSuccess($message);
        } else {
            $message = 'There was an issue creating a work request. Please try again.';

            return redirect()->route('maintenance.client.work-requests.create')->withErrors($message);
        }
    }
Creates a work request.

@param WorkRequest $request

@return \Illuminate\Http\RedirectResponse