Pretty critical improvements, good job, this is what we needed.
@DianaWebdevАй бұрын
The `defer()` feature is exciting, but `when()` makes my inner code monk SO happy. I always hated "inline" @if in blade files.
@LaravelPHPАй бұрын
Glad we could help your inner code monk 🙌 (Christoph)
@MuhammadAbdullahMirzaАй бұрын
I liked defer() the most ❤️
@mikechurvis2762Ай бұрын
What's the difference between defer(Closure) and dispatch(Closure)->afterResponse()?
@sajadtorkamani9399Ай бұрын
Awesome features 🔥
@incoming-thАй бұрын
It would be nice if we could avoid using ->value everywhere in the app for Enum, but that still an improvement. Also the defer() is one of the biggest surprised during Laracon and I can see this used for background audit on users actions, for something more complex and intensive jobs are still the way to go, also is dispatchAfterResponse() using defer() ?
@berthojorisАй бұрын
`When Helper` Is great 🤟
@LaravelPHPАй бұрын
Glad you like it. (Christoph)
@mh5854Ай бұрын
i still prefer using the if directive rather than using that when directive, simply it is more clear and informative
@LaravelPHPАй бұрын
Sure, whatever fits you better 👍 (Christoph)
@prymieeАй бұрын
First is mine this time, Laravel 4 Life
@LaravelPHPАй бұрын
🤘 (Christoph)
@cydoentisАй бұрын
What theme are we using in this video :O, I gotta ask the important questions
@dominikbetlej7114Ай бұрын
Thanks!
@LaravelPHPАй бұрын
No problem! (christoph)
@valpuia604Ай бұрын
Any plan to put out optional parameter to confirmed rule in docs
@LaravelPHPАй бұрын
is planned 👍 (Christoph)
@lestratege4Ай бұрын
plz do a tutorial for auth with cookie sessions... i always get unauthenticated or token missmatch plz
@websdev4532Ай бұрын
is defer() has any time limit? forexample I have to send data to multiple API's and it takes more than 1 minute, would it work with defer or I will get timeout error ?
@drugoviicАй бұрын
have't tried it yet, but you can always change maximum execution time if it has the regular 30 seconds
@websdev4532Ай бұрын
@@drugoviic I tried it and works fine, no more queue
@JafarH-ip5qhАй бұрын
🎉
@shaz3eАй бұрын
What if we just use defer instead jobs for example sending email and email gets failed
@smokeyoakАй бұрын
You should be able to catch Mail::failures in the deferred action and respond appropriately when that happens. If you need to make sure that the mail is sent before returning the response, it might not be a good use case for defer
@melekRebaiАй бұрын
One thing that is unclear, what are the limits of the new defer helper function (time limit maybe), and what are the requirements (apache, nginx ...?)
@LaravelPHPАй бұрын
It should work on all platforms, no requirements (Christoph)
@jasonennis4905Ай бұрын
What about cache::flexible ?
@LaravelPHPАй бұрын
There were just too many new things to cover, you wanna learn about that too? (Christoph)
@urthamusicАй бұрын
defer() is not working on Windows. Very sad. Thanks for your video :)
@ajzack983Ай бұрын
Yes windows is very sad lol. Use WSL at least
@DougLopesАй бұрын
It doesn't work very well in linux too. The view appears fast, but the request is not finished until the closure it's done.