N
N
NubasLol2018-10-14 22:00:09
Laravel
NubasLol, 2018-10-14 22:00:09

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))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2018-10-14
@NubasLol

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 your question

Ask a Question

731 491 924 answers to any question