public function show(...$args)
    {
        // We need to do this in order to support multiple parameter resource routes. For example,
        // if we map route /user/{user}/comments/{comment} to a controller, Laravel will pass `user`
        // as first argument and `comment` as last argument. So, id object that we want to fetch
        // is the last argument.
        $id = last(func_get_args());

        $this->validate();

        $results = $this->parseRequest()
            ->addIncludes()
            ->addKeyConstraint($id)
            ->modify()
            ->getResults(true)
            ->first()
            ->toArray();

        $meta = $this->getMetaData(true);

        return ApiResponse::make(null, $results, $meta);
    }
public function show(...$args)
    {
        // We need to do this in order to support multiple parameter resource routes. For example,
        // if we map route /user/{user}/comments/{comment} to a controller, Laravel will pass `user`
        // as first argument and `comment` as last argument. So, id object that we want to fetch
        // is the last argument.
        $id = last(func_get_args());

        $this->validate();

        $results = $this->parseRequest()
            ->addIncludes()
            ->addKeyConstraint($id)
            ->modify()
            ->getResults(true)
            ->first()
            ->toArray();

        $meta = $this->getMetaData(true);

        return ApiResponse::make(null, $results, $meta);
    }
public function show ( ... $ args ) { // We need to do this in order to support multiple parameter resource routes. For example, // if we map route /user/{user}/comments/{comment} to a controller, Laravel will pass `user` // as first argument and `comment` as last argument. So, id object that we want to fetch // is the last argument. $ id = last ( func_get_args ( ) ) ; $ this -> validate ( ) ; $ results = $ this -> parseRequest ( ) -> addIncludes ( ) -> addKeyConstraint ( $ id ) -> modify ( ) -> getResults ( true ) -> first ( ) -> toArray ( ) ; $ meta = $ this -> getMetaData ( true ) ; return ApiResponse :: make ( null , $ results , $ meta ) ; }
Process the show request

@return mixed
Process the show request