Session class Session extends Facade (View source) Methods static void swap(mixed $instance) Hotswap the underlying instance behind the facade. from Facade static Expectation shouldReceive() Initiate a mock expectation on the facade. from Facade static mixed getFacadeRoot() Get the root object behind the facade. from Facade static void clearResolvedInstance(string $name) Clear a resolved facade instance. from Facade static void clearResolvedInstances() Clear all of the res
void assertSentTo(mixed $notifiable, string $notification, callable|null $callback = null) Assert if a notification was sent based on a truth-test callback. Parameters mixed $notifiable string $notification callable|null $callback Return Value void
Collection pluck(string $value, string|null $key = null) Get the values of a given key. Parameters string $value string|null $key Return Value Collection
void subscribe(object|string $subscriber) Register an event subscriber with the dispatcher. Parameters object|string $subscriber Return Value void
void setPreviousUrl(string $url) Set the "previous" URL in the session. Parameters string $url Return Value void
array invalid() Returns the data which was invalid. Return Value array
array items() Get the slice of items being paginated. Return Value array
static array prepend(array $array, mixed $value, mixed $key = null) Push an item onto the beginning of an array. Parameters array $array mixed $value mixed $key Return Value array
static array compiles() Get a list of files that should be compiled for the package. Return Value array
array prepareBindings(array $bindings) Prepare the query bindings for execution. Parameters array $bindings Return Value array
Page 527 of 996