public function index($id)
    {
        $asset = $this->asset->model()->findOrFail($id);

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

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

@param int|string $id

@return \Illuminate\View\View
Displays all meters for the specified asset .