Skip to content

Commit

Permalink
add option to enable
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Aug 13, 2018
1 parent 29e9d53 commit 9012496
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Passport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 9012496

Please sign in to comment.