From 90124969cdd4ff39d4cd5a608c23bbe16e772f7e Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 13 Aug 2018 09:45:04 -0500 Subject: [PATCH] add option to enable --- src/Passport.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Passport.php b/src/Passport.php index 68c075e3e..66136b839 100644 --- a/src/Passport.php +++ b/src/Passport.php @@ -514,6 +514,18 @@ public static function ignoreMigrations() return new static; } + /** + * Instruct Passport to enable cookie serialization. + * + * @return static + */ + public static function withCookieSerialization() + { + static::$unserializesCookies = true; + + return new static; + } + /** * Instruct Passport to disable cookie serialization. *