src/Traits/PublishRoutes.php
protected function publishRoute(Filesystem $filesystem, $route)
    {
        if (is_null($route)) {
            return ;
        }

        $routeFile = app_path('Http/routes.php');

        if ($filesystem->exists($routeFile) && $filesystem->exists($route)) {
            $filesystem->append($routeFile, $filesystem->get($route));

            $this->line('<info>Append routes from</info> <comment>['.$route.']</comment>');
        }
    }
protected function publishRoute(Filesystem $filesystem, $route)
    {
        if (is_null($route)) {
            return ;
        }

        $routeFile = app_path('Http/routes.php');

        if ($filesystem->exists($routeFile) && $filesystem->exists($route)) {
            $filesystem->append($routeFile, $filesystem->get($route));

            $this->line('<info>Append routes from</info> <comment>['.$route.']</comment>');
        }
    }
protected function publishRoute ( Filesystem $ filesystem , $ route ) { if ( is_null ( $ route ) ) { return ; } $ routeFile = app_path ( 'Http/routes.php' ) ; if ( $ filesystem -> exists ( $ routeFile ) && $ filesystem -> exists ( $ route ) ) { $ filesystem -> append ( $ routeFile , $ filesystem -> get ( $ route ) ) ; $ this -> line ( '<info>Append routes from</info> <comment>[' . $ route . ']</comment>' ) ; } }
Appends routes.

@param  \Illuminate\Filesystem\Filesystem  $filesystem
@param  string|null  $route

@return void
Appends routes .