protected function exportRoutes()
    {
        if ($this->version < 5.3) {
            $routeFile = app_path('Http/routes.php');
            $stubFile = __DIR__.'/../stubs/routes.stub';
        }
        else {
            $routeFile = base_path('routes/web.php');
            $stubFile = __DIR__.'/../stubs/routes/web.stub';
        }

        $routeContent = file_get_contents($routeFile);
        
        preg_match('/ProfileController@view/', $routeContent, $matches);

        if (! count($matches)) {
            $this->info('Updated Routes File.');

            file_put_contents(
                $routeFile,
                file_get_contents($stubFile),
                FILE_APPEND
            );
        }
    }
protected function exportRoutes()
    {
        if ($this->version < 5.3) {
            $routeFile = app_path('Http/routes.php');
            $stubFile = __DIR__.'/../stubs/routes.stub';
        }
        else {
            $routeFile = base_path('routes/web.php');
            $stubFile = __DIR__.'/../stubs/routes/web.stub';
        }

        $routeContent = file_get_contents($routeFile);
        
        preg_match('/ProfileController@view/', $routeContent, $matches);

        if (! count($matches)) {
            $this->info('Updated Routes File.');

            file_put_contents(
                $routeFile,
                file_get_contents($stubFile),
                FILE_APPEND
            );
        }
    }
protected function exportRoutes ( ) { if ( $ this -> version < 5.3 ) { $ routeFile = app_path ( 'Http/routes.php' ) ; $ stubFile = __DIR__ . '/../stubs/routes.stub' ; } else { $ routeFile = base_path ( 'routes/web.php' ) ; $ stubFile = __DIR__ . '/../stubs/routes/web.stub' ; } $ routeContent = file_get_contents ( $ routeFile ) ; preg_match ( '/ProfileController@view/' , $ routeContent , $ matches ) ; if ( ! count ( $ matches ) ) { $ this -> info ( 'Updated Routes File.' ) ; file_put_contents ( $ routeFile , file_get_contents ( $ stubFile ) , FILE_APPEND ) ; } }
Export the routes.

@return void
Export the routes .