Fix redirecting to setup wizard

This commit is contained in:
printempw 2018-08-14 10:46:32 +08:00
parent 0b1ed82cf7
commit 6c7076b39e

View File

@ -84,11 +84,13 @@ class RuntimeCheckServiceProvider extends ServiceProvider
{
// Redirect to setup wizard
if (! SetupController::checkTablesExist()) {
return redirect('/setup')->send();
redirect('/setup')->send();
exit;
}
if (Comparator::greaterThan(config('app.version'), option('version'))) {
return redirect('/setup/update')->send();
redirect('/setup/update')->send();
exit;
}
if (! SetupController::checkNewColumnsExist()) {