public function compile($stub, $modelName, $modelData, stdClass $scaffolderConfig, $hash, array $extensions, $extra = null)
    {
        $this->stub = $stub;

        $this->replaceResource($modelName);

        return $this->stub;
    }
public function compile($stub, $modelName, $modelData, stdClass $scaffolderConfig, $hash, array $extensions, $extra = null)
    {
        $this->stub = $stub;

        $this->replaceResource($modelName);

        return $this->stub;
    }
public function compile ( $ stub , $ modelName , $ modelData , stdClass $ scaffolderConfig , $ hash , array $ extensions , $ extra = null ) { $ this -> stub = $ stub ; $ this -> replaceResource ( $ modelName ) ; return $ this -> stub ; }
Compiles a route.

@param $stub
@param $modelName
@param $modelData
@param \stdClass $scaffolderConfig
@param $hash
@param \Scaffolder\Support\Contracts\ScaffolderExtensionInterface[] $extensions
@param null $extra

@return string
Compiles a route .