Skip to content

Documentation - Session Library - session()->start() #982

Closed
@gabriel-pnhr

Description

@gabriel-pnhr

In the documentation, the instruction for catch the session library with the helper causes confusions.
It is said :
$session = session()->start();

but start() does not return the session object, so we can not use the others method directly (like $session->set(...) )

Two suggestions :

  • add "return $this;" in the start() method (Session/Session.php)
    or
  • Change this line in the documentation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions