private function createRouteFile()
    {
        $routeFileName = "routes.php";
        $routeFilePath = $this->moduleDirectory . DIRECTORY_SEPARATOR . $routeFileName;

        if (file_exists($routeFilePath) && $this->isForce == false) {
            $this->info('Route file exists. Skip.');
            return $routeFilePath;
        }

        $routeFileContent = "<?php\n\n";
        file_put_contents($routeFilePath, $routeFileContent);
        $this->info('Route file is set: ' . $routeFileName);
        $this->line($routeFilePath);

        return $routeFilePath;
    }
private function createRouteFile()
    {
        $routeFileName = "routes.php";
        $routeFilePath = $this->moduleDirectory . DIRECTORY_SEPARATOR . $routeFileName;

        if (file_exists($routeFilePath) && $this->isForce == false) {
            $this->info('Route file exists. Skip.');
            return $routeFilePath;
        }

        $routeFileContent = "<?php\n\n";
        file_put_contents($routeFilePath, $routeFileContent);
        $this->info('Route file is set: ' . $routeFileName);
        $this->line($routeFilePath);

        return $routeFilePath;
    }
private function createRouteFile ( ) { $ routeFileName = "routes.php" ; $ routeFilePath = $ this -> moduleDirectory . DIRECTORY_SEPARATOR . $ routeFileName ; if ( file_exists ( $ routeFilePath ) && $ this -> isForce == false ) { $ this -> info ( 'Route file exists. Skip.' ) ; return $ routeFilePath ; } $ routeFileContent = "<?php\n\n" ; file_put_contents ( $ routeFilePath , $ routeFileContent ) ; $ this -> info ( 'Route file is set: ' . $ routeFileName ) ; $ this -> line ( $ routeFilePath ) ; return $ routeFilePath ; }
Create routes.php
@return string
Create routes . php