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

  Рет қаралды 6,010

Laravel

Laravel

Күн бұрын

Пікірлер: 37
@secmazec
@secmazec Ай бұрын
Pretty critical improvements, good job, this is what we needed.
@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)
@MuhammadAbdullahMirza
@MuhammadAbdullahMirza Ай бұрын
I liked defer() the most ❤️
@mikechurvis2762
@mikechurvis2762 Ай бұрын
What's the difference between defer(Closure) and dispatch(Closure)->afterResponse()?
@sajadtorkamani9399
@sajadtorkamani9399 Ай бұрын
Awesome features 🔥
@incoming-th
@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
@berthojoris Ай бұрын
`When Helper` Is great 🤟
@LaravelPHP
@LaravelPHP Ай бұрын
Glad you like it. (Christoph)
@mh5854
@mh5854 Ай бұрын
i still prefer using the if directive rather than using that when directive, simply it is more clear and informative
@LaravelPHP
@LaravelPHP Ай бұрын
Sure, whatever fits you better 👍 (Christoph)
@prymiee
@prymiee Ай бұрын
First is mine this time, Laravel 4 Life
@LaravelPHP
@LaravelPHP Ай бұрын
🤘 (Christoph)
@cydoentis
@cydoentis Ай бұрын
What theme are we using in this video :O, I gotta ask the important questions
@dominikbetlej7114
@dominikbetlej7114 Ай бұрын
Thanks!
@LaravelPHP
@LaravelPHP Ай бұрын
No problem! (christoph)
@valpuia604
@valpuia604 Ай бұрын
Any plan to put out optional parameter to confirmed rule in docs
@LaravelPHP
@LaravelPHP Ай бұрын
is planned 👍 (Christoph)
@lestratege4
@lestratege4 Ай бұрын
plz do a tutorial for auth with cookie sessions... i always get unauthenticated or token missmatch plz
@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 ?
@drugoviic
@drugoviic Ай бұрын
have't tried it yet, but you can always change maximum execution time if it has the regular 30 seconds
@websdev4532
@websdev4532 Ай бұрын
@@drugoviic I tried it and works fine, no more queue
@JafarH-ip5qh
@JafarH-ip5qh Ай бұрын
🎉
@shaz3e
@shaz3e Ай бұрын
What if we just use defer instead jobs for example sending email and email gets failed
@smokeyoak
@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
@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
@LaravelPHP Ай бұрын
It should work on all platforms, no requirements (Christoph)
@jasonennis4905
@jasonennis4905 Ай бұрын
What about cache::flexible ?
@LaravelPHP
@LaravelPHP Ай бұрын
There were just too many new things to cover, you wanna learn about that too? (Christoph)
@urthamusic
@urthamusic Ай бұрын
defer() is not working on Windows. Very sad. Thanks for your video :)
@ajzack983
@ajzack983 Ай бұрын
Yes windows is very sad lol. Use WSL at least
@DougLopes
@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.
@mh5854
@mh5854 Ай бұрын
That defer helper is not clear, need more info
@AntoineGeorgiev
@AntoineGeorgiev Ай бұрын
when 😆
@Ber-ser-ker
@Ber-ser-ker Ай бұрын
defer doesn't work. Is it just me?
@AbdelrahmanMahmoud-v1x
@AbdelrahmanMahmoud-v1x Ай бұрын
yes me too
Laravel Service Providers: All You Need to Know
13:13
Laravel Daily
Рет қаралды 67 М.
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
Wait… Maxim, did you just eat 8 BURGERS?!🍔😳| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 9 МЛН
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 32 МЛН
Laravel Roles/Permissions: Complex Multi-Clinic Project
13:03
Laravel Daily
Рет қаралды 10 М.
Build Your Own Custom Auth System with Fortify
20:14
Laravel
Рет қаралды 7 М.
I'm new to testing in Laravel (Watch me learn)
22:03
Laravel
Рет қаралды 10 М.
Why Don't We Have A Laravel For JavaScript?
12:36
Theo - t3․gg
Рет қаралды 108 М.
An alternative to associative arrays in PHP
15:08
Mateus Guimarães
Рет қаралды 13 М.
Should You Use a Notification or a Mailable?
12:48
Laravel
Рет қаралды 11 М.
What's New in Laravel Herd 1.11
22:39
Laravel
Рет қаралды 12 М.
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18