how to solve 419 PAGE EXPIRED, using laravel8 mongodb

  laravel, middleware, mongodb

Im using laravel 8 with jetstream authentication and bongodb before changing database from mysql to mongodb (using jenssegers/laravel-mongodb) it was everything work fine but when i use mongodb every post methode doesn’t work it give me this erreur (‘419 PAGE EXPIRED’)
i know where is the probleme exactlty is in this function

namespace IlluminateFoundationHttpMiddleware;
protected function inExceptArray($request)
{
    foreach ($this->except as $except) {
        if ($except !== '/') {
            $except = trim($except, '/');
        }
        if ($request->fullUrlIs($except) || $request->is($except)) {
            return true;
        }
    }
    return false;
}

i dont know what i miss why it always return false

Source: Laravel

Leave a Reply