src/Http/Request.php
public function createFromIlluminate(IlluminateRequest $old)
    {
        $new = new static(
            $old->query->all(), $old->request->all(), $old->attributes->all(),
            $old->cookies->all(), $old->files->all(), $old->server->all(), $old->content
        );

        if ($session = $old->getSession()) {
            $new->setLaravelSession($old->getSession());
        }

        $new->setRouteResolver($old->getRouteResolver());
        $new->setUserResolver($old->getUserResolver());

        return $new;
    }
public function createFromIlluminate(IlluminateRequest $old)
    {
        $new = new static(
            $old->query->all(), $old->request->all(), $old->attributes->all(),
            $old->cookies->all(), $old->files->all(), $old->server->all(), $old->content
        );

        if ($session = $old->getSession()) {
            $new->setLaravelSession($old->getSession());
        }

        $new->setRouteResolver($old->getRouteResolver());
        $new->setUserResolver($old->getUserResolver());

        return $new;
    }
public function createFromIlluminate ( IlluminateRequest $ old ) { $ new = new static ( $ old -> query -> all ( ) , $ old -> request -> all ( ) , $ old -> attributes -> all ( ) , $ old -> cookies -> all ( ) , $ old -> files -> all ( ) , $ old -> server -> all ( ) , $ old -> content ) ; if ( $ session = $ old -> getSession ( ) ) { $ new -> setLaravelSession ( $ old -> getSession ( ) ) ; } $ new -> setRouteResolver ( $ old -> getRouteResolver ( ) ) ; $ new -> setUserResolver ( $ old -> getUserResolver ( ) ) ; return $ new ; }
Create a new Dingo request instance from an Illuminate request instance.

@param \Illuminate\Http\Request $old

@return \Dingo\Api\Http\Request
Create a new Dingo request instance from an Illuminate request instance .