app/Http/Controllers/Asset/ManualController.php
public function store(ManualRequest $request, $id)
    {
        $asset = $this->asset->find($id);

        $attachments = $this->manual->upload($request, $asset, $asset->manuals());

        if ($attachments) {
            $message = 'Successfully uploaded files.';

            return redirect()->route('maintenance.assets.manuals.index', [$asset->id])->withSuccess($message);
        } else {
            $message = 'There was an issue uploading the files you selected. Please try again.';

            return redirect()->route('maintenance.assets.manuals.create', [$id])->withErrors($message);
        }
    }
public function store(ManualRequest $request, $id)
    {
        $asset = $this->asset->find($id);

        $attachments = $this->manual->upload($request, $asset, $asset->manuals());

        if ($attachments) {
            $message = 'Successfully uploaded files.';

            return redirect()->route('maintenance.assets.manuals.index', [$asset->id])->withSuccess($message);
        } else {
            $message = 'There was an issue uploading the files you selected. Please try again.';

            return redirect()->route('maintenance.assets.manuals.create', [$id])->withErrors($message);
        }
    }
Uploads manuals and attaches them to the specified asset.

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

@return \Illuminate\Http\RedirectResponse