Categories
Laravel how do laravel sessions work?
Why if you first execute such code And then it displays null and not the word test session()->put(['test' = 'test'])dd(session()->get('test))
session()->put(['test' = 'test'])
dd(session()->get('test))
Answer the question
In order to leave comments, you need to log in
Don't use dd, it kills request processing and session writing doesn't work Proofs: https://github.com/laravel/docs/pull/3376 https://laracasts.com/discuss/channels/laravel/is-...
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question