When Helper, Find Or Fail, Defer & more in Laravel 11.23

  Рет қаралды 4,071

Laravel

Laravel

Күн бұрын

Пікірлер: 32
@MuhammadAbdullahMirza
@MuhammadAbdullahMirza 2 күн бұрын
I liked defer() the most ❤️
@prymiee
@prymiee 2 күн бұрын
First is mine this time, Laravel 4 Life
@LaravelPHP
@LaravelPHP 2 күн бұрын
🤘 (Christoph)
@mikechurvis2762
@mikechurvis2762 Күн бұрын
What's the difference between defer(Closure) and dispatch(Closure)->afterResponse()?
@DianaWebdev
@DianaWebdev Күн бұрын
The `defer()` feature is exciting, but `when()` makes my inner code monk SO happy. I always hated "inline" @if in blade files.
@LaravelPHP
@LaravelPHP Күн бұрын
Glad we could help your inner code monk 🙌 (Christoph)
@mh5854
@mh5854 2 күн бұрын
i still prefer using the if directive rather than using that when directive, simply it is more clear and informative
@LaravelPHP
@LaravelPHP 2 күн бұрын
Sure, whatever fits you better 👍 (Christoph)
@shaz3e
@shaz3e 2 күн бұрын
What if we just use defer instead jobs for example sending email and email gets failed
@smokeyoak
@smokeyoak 2 күн бұрын
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
@berthojoris
@berthojoris 2 күн бұрын
`When Helper` Is great 🤟
@LaravelPHP
@LaravelPHP 2 күн бұрын
Glad you like it. (Christoph)
@websdev4532
@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 ?
@incoming-th
@incoming-th 2 күн бұрын
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() ?
@sajadtorkamani9399
@sajadtorkamani9399 21 сағат бұрын
Awesome features 🔥
@cydoentis
@cydoentis 2 күн бұрын
What theme are we using in this video :O, I gotta ask the important questions
@valpuia604
@valpuia604 Күн бұрын
Any plan to put out optional parameter to confirmed rule in docs
@LaravelPHP
@LaravelPHP Күн бұрын
is planned 👍 (Christoph)
@JafarH-ip5qh
@JafarH-ip5qh Күн бұрын
🎉
@mh5854
@mh5854 2 күн бұрын
That defer helper is not clear, need more info
@lestratege4
@lestratege4 2 күн бұрын
plz do a tutorial for auth with cookie sessions... i always get unauthenticated or token missmatch plz
@jasonennis4905
@jasonennis4905 2 күн бұрын
What about cache::flexible ?
@LaravelPHP
@LaravelPHP 2 күн бұрын
There were just too many new things to cover, you wanna learn about that too? (Christoph)
@melekRebai
@melekRebai 2 күн бұрын
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
@LaravelPHP Күн бұрын
It should work on all platforms, no requirements (Christoph)
@AntoineGeorgiev
@AntoineGeorgiev 2 күн бұрын
when 😆
@urthamusic
@urthamusic 2 күн бұрын
defer() is not working on Windows. Very sad. Thanks for your video :)
@ajzack983
@ajzack983 2 күн бұрын
Yes windows is very sad lol. Use WSL at least
@DougLopes
@DougLopes 17 сағат бұрын
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.
@dominikbetlej7114
@dominikbetlej7114 2 күн бұрын
Thanks!
@LaravelPHP
@LaravelPHP 2 күн бұрын
No problem! (christoph)
The Best Programmer I Know • Daniel Terhorst-North • GOTO 2024
48:33
GOTO Conferences
Рет қаралды 41 М.
Type Juggling and Coercion in PHP
10:24
Frank Prins
Рет қаралды 69
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 16 МЛН
Laravel + Livewire todo app (and so much more)
16:41
Aaron Francis
Рет қаралды 44 М.
Laravel Mini CRM for Beginners in 1 Hour: Step-by-Step
1:12:57
Laravel Daily
Рет қаралды 6 М.
BEWARE these Laravel attributes | Real World Laravel
19:10
Sam Lewis
Рет қаралды 3,7 М.
No, Einstein Didn’t Solve the Biggest Problem in Physics
8:04
Sabine Hossenfelder
Рет қаралды 265 М.
JavaScript Visualized - Event Loop, Web APIs, (Micro)task Queue
12:35
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 158 М.
Free, fast, full text search: Laravel + Typesense
22:04
Aaron Francis
Рет қаралды 8 М.