Level 20
@connor11528 lol awesome...sounds like it wasn't anything I thought of...nice find!
Summer Sale! All accounts are 50% off this week.
@connor11528 lol awesome...sounds like it wasn't anything I thought of...nice find!
public function render($request, Exception $exception) {
return $request->expectsJson()
? response()->json(['message' => $exception->getMessage()], 401)
: redirect()->guest(route('login', ['account' => $request->route('account')]));
}
This happens to me a lot, it seems that the cookies don't match the file sessions after a deployment. Presumably because when I deploy using docker the memcached sessions are cleared and the cookie is now invalid.
Personally I use a standard form submission and no AJAX so the 419 really threw me off.
I think what I have to do after reading over this thread is to try running php artisan cache:clear because when I make a code change my composer script is not run.
Please or to participate in this conversation.