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

@ -3,6 +3,7 @@
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Str;
class RedirectIfWizardCompleted
{
@ -16,12 +17,12 @@ class RedirectIfWizardCompleted
public function handle($request, Closure $next)
{
// Not in wizard
if (!starts_with($request->getPathInfo(), '/wizard')) {
if (!Str::startsWith($request->getPathInfo(), '/wizard')) {
return $next($request);
}
// Wizard not completed
if (!setting('general.wizard', 0)) {
if (!setting('wizard.completed', 0)) {
return $next($request);
}