public function makeUri(Request $request)
    {
        $content = $this->storage()->create(
            $request->query->get('contenttypeslug'),
            $request->query->all()
        );

        // Spoof the title, for contenttypes that have a different `uses:`
        $content->set('title', $request->query->get('title'));

        $uri = $content->getUri(
            $request->query->get('id'),
            $request->query->getBoolean('fulluri'),
            $request->query->get('slugfield') //for multipleslug support
        );

        return $uri;
    }
public function makeUri(Request $request)
    {
        $content = $this->storage()->create(
            $request->query->get('contenttypeslug'),
            $request->query->all()
        );

        // Spoof the title, for contenttypes that have a different `uses:`
        $content->set('title', $request->query->get('title'));

        $uri = $content->getUri(
            $request->query->get('id'),
            $request->query->getBoolean('fulluri'),
            $request->query->get('slugfield') //for multipleslug support
        );

        return $uri;
    }
public function makeUri ( Request $ request ) { $ content = $ this -> storage ( ) -> create ( $ request -> query -> get ( 'contenttypeslug' ) , $ request -> query -> all ( ) ) ; // Spoof the title, for contenttypes that have a different `uses:` $ content -> set ( 'title' , $ request -> query -> get ( 'title' ) ) ; $ uri = $ content -> getUri ( $ request -> query -> get ( 'id' ) , $ request -> query -> getBoolean ( 'fulluri' ) , $ request -> query -> get ( 'slugfield' ) //for multipleslug support ) ; return $ uri ; }
Generate a URI based on request parameters.

@param Request $request

@return string
Generate a URI based on request parameters .