public function show($id, $meterId)
    {
        $asset = $this->asset->model()->findOrFail($id);

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

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

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

        return view('assets.meters.show', compact('asset', 'meter'));
    }
public function show ( $ id , $ meterId ) { $ asset = $ this -> asset -> model ( ) -> findOrFail ( $ id ) ; $ meter = $ asset -> meters ( ) -> findOrFail ( $ meterId ) ; return view ( 'assets.meters.show' , compact ( 'asset' , 'meter' ) ) ; }
Displays the specified meter for the specified asset.

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

@return \Illuminate\View\View
Displays the specified meter for the specified asset .