App\Providers\BootServiceProvider::checkInstallation PHP Méthode

checkInstallation() protected méthode

protected checkInstallation ( )
    protected function checkInstallation()
    {
        // redirect to setup wizard
        if (!SetupController::checkTablesExist()) {
            return redirect('/setup')->send();
        }
        if (!SetupController::checkTextureDirectory()) {
            throw new PrettyPageException(trans('setup.file.permission-error'), -1);
        }
        if (version_compare(config('app.version'), option('version', ''), '>')) {
            return redirect('/setup/update')->send();
        }
        return true;
    }