public function show($id, $imageId)
    {
        $asset = $this->asset->find($id);

        $image = $asset->images()->find($imageId);

        if ($image) {
            return view('assets.images.show', compact('asset', 'image'));
        }

        abort(404);
    }
public function show($id, $imageId)
    {
        $asset = $this->asset->find($id);

        $image = $asset->images()->find($imageId);

        if ($image) {
            return view('assets.images.show', compact('asset', 'image'));
        }

        abort(404);
    }
public function show ( $ id , $ imageId ) { $ asset = $ this -> asset -> find ( $ id ) ; $ image = $ asset -> images ( ) -> find ( $ imageId ) ; if ( $ image ) { return view ( 'assets.images.show' , compact ( 'asset' , 'image' ) ) ; } abort ( 404 ) ; }
Displays the asset image.

@param int|string $id
@param int|string $imageId

@return \Illuminate\View\View
Displays the asset image .