app/Http/Controllers/WorkOrder/WorkOrderController.php
public function store(WorkOrderRequest $request)
    {
        if ($this->processor->store($request)) {
            flash()->success('Success!', 'Successfully created work order.');

            return redirect()->route('maintenance.work-orders.index');
        } else {
            flash()->error('Error!', 'There was an issue creating this work order. Please try again.');

            return redirect()->route('maintenance.work-orders.create');
        }
    }
public function store(WorkOrderRequest $request)
    {
        if ($this->processor->store($request)) {
            flash()->success('Success!', 'Successfully created work order.');

            return redirect()->route('maintenance.work-orders.index');
        } else {
            flash()->error('Error!', 'There was an issue creating this work order. Please try again.');

            return redirect()->route('maintenance.work-orders.create');
        }
    }
Creates a new work order.

@param WorkOrderRequest $request

@return \Illuminate\Http\RedirectResponse