EncryptedStore
class EncryptedStore extends Store (View source)
Traits
Properties
static protected array | $macros | The registered string macros. |
from Macroable |
protected string | $id | The session ID. |
from Store |
protected string | $name | The session name. |
from Store |
protected array | $attributes | The session attributes. |
from Store |
protected SessionHandlerInterface | $handler | The session handler implementation. |
from Store |
protected string | $serialization | The session store's serialization strategy. |
from Store |
protected bool | $started | Session store started status. |
from Store |
protected Encrypter | $encrypter | The encrypter instance. |
Methods
Mix another object into the class.
Dynamically handle calls to the class.
Dynamically handle calls to the class.
Create a new session instance.
Prepare the raw string data from the session for unserialization.
Marshal the ViewErrorBag when using JSON serialization for sessions.
Prepare the ViewErrorBag instance for JSON serialization.
Prepare the serialized session data for storage.
Get all the session data except for a specified array of items.
Determine if the given key is missing from the session data.
Determine if any of the given keys are present and not null.
Get the value of a given key and then forget it.
Get the requested item from the flashed input array.
Put a key / value pair or array of key / value pairs in the session.
Increment the value of an item in the session.
Decrement the value of an item in the session.
Flash a key / value pair to the session for immediate use.
Set the existence of the session on the handler if applicable.
Get the encrypter instance.
Details
__construct(string $name, SessionHandlerInterface $handler, Encrypter $encrypter, string|null $id = null, string $serialization = 'php')
Create a new session instance.
protected string
prepareForUnserialize(string $data)
Prepare the raw string data from the session for unserialization.
in
Store at line 147
protected void
marshalErrorBag()
Marshal the ViewErrorBag when using JSON serialization for sessions.
in
Store at line 187
protected void
prepareErrorBagForSerialization()
Prepare the ViewErrorBag instance for JSON serialization.
in
Store at line 257
array
except(array $keys)
Get all the session data except for a specified array of items.
in
Store at line 283
bool
missing(string|array $key)
Determine if the given key is missing from the session data.
in
Store at line 307
bool
hasAny(string|array $key)
Determine if any of the given keys are present and not null.
in
Store at line 333
mixed
pull(string $key, mixed $default = null)
Get the value of a given key and then forget it.
in
Store at line 344
bool
hasOldInput(string|null $key = null)
Determine if the session contains old input.
in
Store at line 358
mixed
getOldInput(string|null $key = null, mixed $default = null)
Get the requested item from the flashed input array.
in
Store at line 381
void
put(string|array $key, mixed $value = null)
Put a key / value pair or array of key / value pairs in the session.
in
Store at line 399
mixed
remember(string $key, Closure $callback)
Get an item from the session, or store the default value.
in
Store at line 433
mixed
increment(string $key, int $amount = 1)
Increment the value of an item in the session.
in
Store at line 447
int
decrement(string $key, int $amount = 1)
Decrement the value of an item in the session.
in
Store at line 459
void
flash(string $key, mixed $value = true)
Flash a key / value pair to the session.
in
Store at line 475
void
now(string $key, mixed $value)
Flash a key / value pair to the session for immediate use.
in
Store at line 500
void
keep(array|mixed $keys = null)
Reflash a subset of the current flash data.
in
Store at line 513
protected void
mergeNewFlashes(array $keys)
Merge new flash keys into the new flash array.
in
Store at line 526
protected void
removeFromOldFlashData(array $keys)
Remove the given keys from the old flash data.
in
Store at line 548
mixed
remove(string $key)
Remove an item from the session, returning its value.
in
Store at line 707
void
setExists(bool $value)
Set the existence of the session on the handler if applicable.
in
Store at line 796
SessionHandlerInterface
getHandler()
Get the underlying session handler implementation.
in
Store at line 807
SessionHandlerInterface
setHandler(SessionHandlerInterface $handler)
Set the underlying session handler implementation.
in
Store at line 828
void
setRequestOnHandler(Request $request)
Set the request on the handler instance.