Session
class Session extends Facade (View source)
Properties
| static protected Application | $app | The application instance being facaded.  | 
                from Facade | 
| static protected array | $resolvedInstance | The resolved object instances.  | 
                from Facade | 
| static protected bool | $cached | Indicates if the resolved instance should be cached.  | 
                from Facade | 
Methods
Create a fresh mock instance for the given class.
Get the registered name of the component.
Resolve the facade root instance from the container.
Get the application instance behind the facade.
Handle dynamic, static calls to the object.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
        in 
Facade at line 43
                static            void
    resolved(Closure $callback)
        
    
    Run a Closure when the facade has been resolved.
        in 
Facade at line 61
                static            MockInterface
    spy()
        
    
    Convert the facade into a Mockery spy.
        in 
Facade at line 77
                static            MockInterface
    partialMock()
        
    
    Initiate a partial mock on the facade.
        in 
Facade at line 93
                static            Expectation
    shouldReceive()
        
    
    Initiate a mock expectation on the facade.
        
                static            Expectation
    expects()
        
    
    Initiate a mock expectation on the facade.
        
                static    protected        MockInterface
    createFreshMockInstance()
        
    
    Create a fresh mock instance for the given class.
        
                static    protected        MockInterface
    createMock()
        
    
    Create a fresh mock instance for the given class.
        
                static    protected        bool
    isMock()
        
    
    Determines whether a mock is set as the instance of the facade.
        
                static    protected        string|null
    getMockableClass()
        
    
    Get the mockable class for the bound instance.
        
                static            void
    swap(mixed $instance)
        
    
    Hotswap the underlying instance behind the facade.
        
                static            mixed
    getFacadeRoot()
        
    
    Get the root object behind the facade.
        
                static    protected        string
    getFacadeAccessor()
        
    
    Get the registered name of the component.
        
                static    protected        mixed
    resolveFacadeInstance(string $name)
        
    
    Resolve the facade root instance from the container.
        
                static            void
    clearResolvedInstance(string $name)
        
    
    Clear a resolved facade instance.
        
                static            void
    clearResolvedInstances()
        
    
    Clear all of the resolved instances.
        
                static            Collection
    defaultAliases()
        
    
    Get the application default aliases.
        
                static            Application
    getFacadeApplication()
        
    
    Get the application instance behind the facade.
        
                static            void
    setFacadeApplication(Application $app)
        
    
    Set the application instance.
        
                static            mixed
    __callStatic(string $method, array $args)
        
    
    Handle dynamic, static calls to the object.
        
                static            bool
    shouldBlock()
        
    
    No description
        
                static            string|null
    blockDriver()
        
    
    No description
        
                static            array
    getSessionConfig()
        
    
    No description
        
                static            string
    getDefaultDriver()
        
    
    No description
        
                static            void
    setDefaultDriver(string $name)
        
    
    No description
        
                static            mixed
    driver(string|null $driver = null)
        
    
    No description
        
                static            SessionManager
    extend(string $driver, Closure $callback)
        
    
    No description
        
                static            array
    getDrivers()
        
    
    No description
        
                static            Container
    getContainer()
        
    
    No description
        
                static            SessionManager
    setContainer(Container $container)
        
    
    No description
        
                static            SessionManager
    forgetDrivers()
        
    
    No description
        
                static            bool
    start()
        
    
    No description
        
                static            void
    save()
        
    
    No description
        
                static            void
    ageFlashData()
        
    
    No description
        
                static            array
    all()
        
    
    No description
        
                static            array
    only(array $keys)
        
    
    No description
        
                static            bool
    exists(string|array $key)
        
    
    No description
        
                static            bool
    missing(string|array $key)
        
    
    No description
        
                static            bool
    has(string|array $key)
        
    
    No description
        
                static            mixed
    get(string $key, mixed $default = null)
        
    
    No description
        
                static            mixed
    pull(string $key, mixed $default = null)
        
    
    No description
        
                static            bool
    hasOldInput(string|null $key = null)
        
    
    No description
        
                static            mixed
    getOldInput(string|null $key = null, mixed $default = null)
        
    
    No description
        
                static            void
    replace(array $attributes)
        
    
    No description
        
                static            void
    put(string|array $key, mixed $value = null)
        
    
    No description
        
                static            mixed
    remember(string $key, Closure $callback)
        
    
    No description
        
                static            void
    push(string $key, mixed $value)
        
    
    No description
        
                static            mixed
    increment(string $key, int $amount = 1)
        
    
    No description
        
                static            int
    decrement(string $key, int $amount = 1)
        
    
    No description
        
                static            void
    flash(string $key, mixed $value = true)
        
    
    No description
        
                static            void
    now(string $key, mixed $value)
        
    
    No description
        
                static            void
    reflash()
        
    
    No description
        
                static            void
    keep(array|mixed $keys = null)
        
    
    No description
        
                static            void
    flashInput(array $value)
        
    
    No description
        
                static            mixed
    remove(string $key)
        
    
    No description
        
                static            void
    forget(string|array $keys)
        
    
    No description
        
                static            void
    flush()
        
    
    No description
        
                static            bool
    invalidate()
        
    
    No description
        
                static            bool
    regenerate(bool $destroy = false)
        
    
    No description
        
                static            bool
    migrate(bool $destroy = false)
        
    
    No description
        
                static            bool
    isStarted()
        
    
    No description
        
                static            string
    getName()
        
    
    No description
        
                static            void
    setName(string $name)
        
    
    No description
        
                static            string
    getId()
        
    
    No description
        
                static            void
    setId(string|null $id)
        
    
    No description
        
                static            bool
    isValidId(string|null $id)
        
    
    No description
        
                static            void
    setExists(bool $value)
        
    
    No description
        
                static            string
    token()
        
    
    No description
        
                static            void
    regenerateToken()
        
    
    No description
        
                static            string|null
    previousUrl()
        
    
    No description
        
                static            void
    setPreviousUrl(string $url)
        
    
    No description
        
                static            void
    passwordConfirmed()
        
    
    No description
        
                static            SessionHandlerInterface
    getHandler()
        
    
    No description
        
                static            SessionHandlerInterface
    setHandler(SessionHandlerInterface $handler)
        
    
    No description
        
                static            bool
    handlerNeedsRequest()
        
    
    No description
        
                static            void
    setRequestOnHandler(Request $request)
        
    
    No description
        
                static            void
    macro(string $name, object|callable $macro)
        
    
    No description
        
                static            void
    mixin(object $mixin, bool $replace = true)
        
    
    No description
        
                static            bool
    hasMacro(string $name)
        
    
    No description
        
                static            void
    flushMacros()
        
    
    No description