Pull in additional upstream updates that don't sync cleanly

This commit is contained in:
Kevin MacMartin 2020-02-25 16:05:35 -05:00
parent 72e77aba76
commit aca480023f
2 changed files with 3 additions and 2 deletions

View file

@ -39,7 +39,7 @@ class Kernel extends HttpKernel
'api' => [
'throttle:120,1',
'bindings',
\Illuminate\Routing\Middleware\SubstituteBindings::class,
],
];

View file

@ -2,6 +2,7 @@
namespace App\Http\Middleware;
use App\Providers\RouteServiceProvider;
use Closure;
use Illuminate\Support\Facades\Auth;
@ -18,7 +19,7 @@ class RedirectIfAuthenticated
public function handle($request, Closure $next, $guard = null)
{
if (Auth::guard($guard)->check()) {
return redirect('/dashboard');
return redirect(RouteServiceProvider::HOME);
}
return $next($request);