protected function installLaranix()
    {
        $replaceAppFiles    = ['.stub', '.php'];

        /**
         * $type =>
         *      destination, (destination install)
         *      compile, (replace __UserAppNamespace__ with app namespace)
         *      force lower case, (lower case the type)
         *      file ext replacement (replace file extensions)
         */
        $parts = [
            'Controllers'   => [app_path('Http'), true, false, $replaceAppFiles],
            'Requests'      => [app_path('Http'), true, false, $replaceAppFiles],
            'themes'        => [resource_path(), false, true, []],
            'views'         => [resource_path(), false, true, ['.view', '.blade.php']],
            'seeds'         => [database_path(), true, false, $replaceAppFiles],
        ];

        foreach ($parts as $type => $params) {
            $this->installFiles($type, $params[0], $params[1], $params[2], $params[3]);
        }

        $this->copyRoutes();
        $this->publishFiles('Configs');
        $this->publishFiles('Migrations');
        $this->publishOtherPackageConfigs();
        $this->publishMailMarkdown();
    }
protected function installLaranix()
    {
        $replaceAppFiles    = ['.stub', '.php'];

        /**
         * $type =>
         *      destination, (destination install)
         *      compile, (replace __UserAppNamespace__ with app namespace)
         *      force lower case, (lower case the type)
         *      file ext replacement (replace file extensions)
         */
        $parts = [
            'Controllers'   => [app_path('Http'), true, false, $replaceAppFiles],
            'Requests'      => [app_path('Http'), true, false, $replaceAppFiles],
            'themes'        => [resource_path(), false, true, []],
            'views'         => [resource_path(), false, true, ['.view', '.blade.php']],
            'seeds'         => [database_path(), true, false, $replaceAppFiles],
        ];

        foreach ($parts as $type => $params) {
            $this->installFiles($type, $params[0], $params[1], $params[2], $params[3]);
        }

        $this->copyRoutes();
        $this->publishFiles('Configs');
        $this->publishFiles('Migrations');
        $this->publishOtherPackageConfigs();
        $this->publishMailMarkdown();
    }
protected function installLaranix ( ) { $ replaceAppFiles = [ '.stub' , '.php' ] ; /**
         * $type =>
         *      destination, (destination install)
         *      compile, (replace __UserAppNamespace__ with app namespace)
         *      force lower case, (lower case the type)
         *      file ext replacement (replace file extensions)
         */ $ parts = [ 'Controllers' => [ app_path ( 'Http' ) , true , false , $ replaceAppFiles ] , 'Requests' => [ app_path ( 'Http' ) , true , false , $ replaceAppFiles ] , 'themes' => [ resource_path ( ) , false , true , [ ] ] , 'views' => [ resource_path ( ) , false , true , [ '.view' , '.blade.php' ] ] , 'seeds' => [ database_path ( ) , true , false , $ replaceAppFiles ] , ] ; foreach ( $ parts as $ type => $ params ) { $ this -> installFiles ( $ type , $ params [ 0 ] , $ params [ 1 ] , $ params [ 2 ] , $ params [ 3 ] ) ; } $ this -> copyRoutes ( ) ; $ this -> publishFiles ( 'Configs' ) ; $ this -> publishFiles ( 'Migrations' ) ; $ this -> publishOtherPackageConfigs ( ) ; $ this -> publishMailMarkdown ( ) ; }
Install Laranix components
Install Laranix components