public function getIndex()
    {
        $supportedLanguages = Request::getLanguages();
        $userLanguage = Config::get('app.locale');

        foreach ($supportedLanguages as $language) {
            $language = str_replace('_', '-', $language);

            if (isset($this->langs[$language])) {
                $userLanguage = $language;
                break;
            }
        }

        // Since .env may already be configured, we should show that data!
        $cacheConfig = [
            'driver' => Config::get('cache.default'),
        ];

        $sessionConfig = [
            'driver' => Config::get('session.driver'),
        ];

        $queueConfig = [
            'driver' => Config::get('queue.default'),
        ];

        $mailConfig = [
            'driver'   => Config::get('mail.driver'),
            'host'     => Config::get('mail.host'),
            'from'     => Config::get('mail.from'),
            'username' => Config::get('mail.username'),
            'password' => Config::get('mail.password'),
        ];

        return View::make('setup.index')
            ->withPageTitle(trans('setup.setup'))
            ->withCacheDrivers($this->cacheDrivers)
            ->withQueueDrivers($this->queueDrivers)
            ->withMailDrivers($this->mailDrivers)
            ->withUserLanguage($userLanguage)
            ->withAppUrl(Request::root())
            ->withCacheConfig($cacheConfig)
            ->withSessionConfig($sessionConfig)
            ->withQueueConfig($queueConfig)
            ->withMailConfig($mailConfig);
    }
public function getIndex()
    {
        $supportedLanguages = Request::getLanguages();
        $userLanguage = Config::get('app.locale');

        foreach ($supportedLanguages as $language) {
            $language = str_replace('_', '-', $language);

            if (isset($this->langs[$language])) {
                $userLanguage = $language;
                break;
            }
        }

        // Since .env may already be configured, we should show that data!
        $cacheConfig = [
            'driver' => Config::get('cache.default'),
        ];

        $sessionConfig = [
            'driver' => Config::get('session.driver'),
        ];

        $queueConfig = [
            'driver' => Config::get('queue.default'),
        ];

        $mailConfig = [
            'driver'   => Config::get('mail.driver'),
            'host'     => Config::get('mail.host'),
            'from'     => Config::get('mail.from'),
            'username' => Config::get('mail.username'),
            'password' => Config::get('mail.password'),
        ];

        return View::make('setup.index')
            ->withPageTitle(trans('setup.setup'))
            ->withCacheDrivers($this->cacheDrivers)
            ->withQueueDrivers($this->queueDrivers)
            ->withMailDrivers($this->mailDrivers)
            ->withUserLanguage($userLanguage)
            ->withAppUrl(Request::root())
            ->withCacheConfig($cacheConfig)
            ->withSessionConfig($sessionConfig)
            ->withQueueConfig($queueConfig)
            ->withMailConfig($mailConfig);
    }
public function getIndex ( ) { $ supportedLanguages = Request :: getLanguages ( ) ; $ userLanguage = Config :: get ( 'app.locale' ) ; foreach ( $ supportedLanguages as $ language ) { $ language = str_replace ( '_' , '-' , $ language ) ; if ( isset ( $ this -> langs [ $ language ] ) ) { $ userLanguage = $ language ; break ; } } // Since .env may already be configured, we should show that data! $ cacheConfig = [ 'driver' => Config :: get ( 'cache.default' ) , ] ; $ sessionConfig = [ 'driver' => Config :: get ( 'session.driver' ) , ] ; $ queueConfig = [ 'driver' => Config :: get ( 'queue.default' ) , ] ; $ mailConfig = [ 'driver' => Config :: get ( 'mail.driver' ) , 'host' => Config :: get ( 'mail.host' ) , 'from' => Config :: get ( 'mail.from' ) , 'username' => Config :: get ( 'mail.username' ) , 'password' => Config :: get ( 'mail.password' ) , ] ; return View :: make ( 'setup.index' ) -> withPageTitle ( trans ( 'setup.setup' ) ) -> withCacheDrivers ( $ this -> cacheDrivers ) -> withQueueDrivers ( $ this -> queueDrivers ) -> withMailDrivers ( $ this -> mailDrivers ) -> withUserLanguage ( $ userLanguage ) -> withAppUrl ( Request :: root ( ) ) -> withCacheConfig ( $ cacheConfig ) -> withSessionConfig ( $ sessionConfig ) -> withQueueConfig ( $ queueConfig ) -> withMailConfig ( $ mailConfig ) ; }
Returns the setup page.

@return \Illuminate\View\View
Returns the setup page .