v2 first commit

This commit is contained in:
denisdulici
2019-11-16 10:21:14 +03:00
parent 5b23e9c2c4
commit 6d50fa8442
3075 changed files with 3451681 additions and 65594 deletions

View File

@ -4,6 +4,7 @@ namespace App\Http\Middleware;
use Closure;
use File;
use Illuminate\Support\Str;
class RedirectIfNotInstalled
{
@ -22,11 +23,11 @@ class RedirectIfNotInstalled
}
// Already in the wizard
if (starts_with($request->getPathInfo(), '/install')) {
if (Str::startsWith($request->getPathInfo(), '/install')) {
return $next($request);
}
// Not installed, redirect to installation wizard
redirect('install/requirements')->send();
redirect()->route('install.requirements')->send();
}
}