Skip to content

Commit 9012496

Browse files
committed
add option to enable
1 parent 29e9d53 commit 9012496

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/Passport.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,18 @@ public static function ignoreMigrations()
514514
return new static;
515515
}
516516

517+
/**
518+
* Instruct Passport to enable cookie serialization.
519+
*
520+
* @return static
521+
*/
522+
public static function withCookieSerialization()
523+
{
524+
static::$unserializesCookies = true;
525+
526+
return new static;
527+
}
528+
517529
/**
518530
* Instruct Passport to disable cookie serialization.
519531
*

0 commit comments

Comments
 (0)