protected function buildRouteCacheFile(RouteCollection $routes)
    {
        $stub = $this->files->get(__DIR__.'/stubs/routes.stub');

        return str_replace('{{routes}}', base64_encode(serialize($routes)), $stub);
    }
protected function buildRouteCacheFile(RouteCollection $routes)
    {
        $stub = $this->files->get(__DIR__.'/stubs/routes.stub');

        return str_replace('{{routes}}', base64_encode(serialize($routes)), $stub);
    }
protected function buildRouteCacheFile ( RouteCollection $ routes ) { $ stub = $ this -> files -> get ( __DIR__ . '/stubs/routes.stub' ) ; return str_replace ( '{{routes}}' , base64_encode ( serialize ( $ routes ) ) , $ stub ) ; }
Build the route cache file.

@param  \Illuminate\Routing\RouteCollection  $routes
@return string
Build the route cache file .