protected function initAdminDirectory()
    {
        $this->directory = config('admin.directory');

        if (is_dir($this->directory)) {
            $this->line("<error>{$this->directory} directory already exists !</error> ");

            return;
        }

        $this->makeDir('/');
        $this->line('<info>Admin directory was created:</info> '.str_replace(base_path(), '', $this->directory));

        $this->makeDir('Controllers');

        $this->createHomeController();
        $this->createExampleController();
        //$this->createAuthController();
        //$this->createAdministratorController();

        //$this->createMenuFile();
        $this->createBootstrapFile();
        $this->createRoutesFile();

        //$this->copyLanguageFiles();
    }
protected function initAdminDirectory()
    {
        $this->directory = config('admin.directory');

        if (is_dir($this->directory)) {
            $this->line("<error>{$this->directory} directory already exists !</error> ");

            return;
        }

        $this->makeDir('/');
        $this->line('<info>Admin directory was created:</info> '.str_replace(base_path(), '', $this->directory));

        $this->makeDir('Controllers');

        $this->createHomeController();
        $this->createExampleController();
        //$this->createAuthController();
        //$this->createAdministratorController();

        //$this->createMenuFile();
        $this->createBootstrapFile();
        $this->createRoutesFile();

        //$this->copyLanguageFiles();
    }
protected function initAdminDirectory ( ) { $ this -> directory = config ( 'admin.directory' ) ; if ( is_dir ( $ this -> directory ) ) { $ this -> line ( "<error>{$this->directory} directory already exists !</error> " ) ; return ; } $ this -> makeDir ( '/' ) ; $ this -> line ( '<info>Admin directory was created:</info> ' . str_replace ( base_path ( ) , '' , $ this -> directory ) ) ; $ this -> makeDir ( 'Controllers' ) ; $ this -> createHomeController ( ) ; $ this -> createExampleController ( ) ; //$this->createAuthController(); //$this->createAdministratorController(); //$this->createMenuFile(); $ this -> createBootstrapFile ( ) ; $ this -> createRoutesFile ( ) ; //$this->copyLanguageFiles(); }
Initialize the admin directory.
Initialize the admin directory .