app/Http/Controllers/Asset/Meter/Controller.php
public function edit($id, $meterId)
    {
        $asset = $this->asset->model()->findOrFail($id);

        $meter = $asset->meters()->findOrFail($meterId);

        $lastReading = $meter->getLastReading();

        return view('assets.meters.edit', compact('asset', 'meter', 'lastReading'));
    }
public function edit($id, $meterId)
    {
        $asset = $this->asset->model()->findOrFail($id);

        $meter = $asset->meters()->findOrFail($meterId);

        $lastReading = $meter->getLastReading();

        return view('assets.meters.edit', compact('asset', 'meter', 'lastReading'));
    }
Displays the form for editing the
specified meter for the specified asset.

@param int|string $id
@param int|string $meterId

@return \Illuminate\View\View