18 Laravel/PHP Tips in 10 Minutes: June 2024

  Рет қаралды 10,279

Laravel Daily

Laravel Daily

Күн бұрын

A new monthly tradition: a re-cap of Twitter about Laravel/PHP over the last month.
Links mentioned in the video:
[My course] PHP for Laravel Developers laraveldaily.c...
[Video] NEW in Laravel 10.33: Number Formatting Class • NEW in Laravel 10.33: ...
[Video] Laravel Job Batch: Show Queue Progress • Laravel Job Batch: Sho...
[Tweet] Martin Joo on Service Classes x.com/mmartin_...
[Tweet] "I'm switching from Laravel to Rails": Reddit Thread x.com/PovilasK...
[List] Laravel People to follow on Twitter laraveldaily.c...
- - - -
Support the channel by checking out my products:
My Laravel courses: laraveldaily.c...
Filament examples: filamentexampl...
Livewire Kit Components: livewirekit.com
- - - -
Other places to follow:
My weekly Laravel newsletter: us11.campaign-...
My personal Twitter: / povilaskorop

Пікірлер: 28
@PabloZagni
@PabloZagni 3 ай бұрын
Yes! Please continue with monthly tips!
@mhm2314
@mhm2314 3 ай бұрын
Very good and efficient tips. Please continue this.
@dsuess
@dsuess 3 ай бұрын
This is a DARN GOOD tradition, thank you!
@WilliamWright-k8s
@WilliamWright-k8s 3 ай бұрын
i love this tips make me learn new things, most likely i will forget them again but i know where to come when need remember something
@MichalKuzmicki
@MichalKuzmicki 3 ай бұрын
The "tell, don't ask" example is more about two things: declarative programming; and a bit about separating the domain of the code - instead of creating some extended logic in the code, that is not the domain of the lessons (let's say a code for singing in, more about the participant, than the lesson itself), I prefer to create logic of the lesson in the lesson class/domain, and allow other domains to have minimal contact with this logic. Thanks to that when debugging such a code - you won't be surprised by an "alien" code.
@piyushgupta2128
@piyushgupta2128 3 ай бұрын
Great work sir 👍, please continue
@DoonSafari
@DoonSafari 3 ай бұрын
Yes Please. You are doing great work man❤
@saravanasai2391
@saravanasai2391 3 ай бұрын
Wow, that is a great share. Hi chief, I would suggest you make a video related to event-sourcing in Laravel. What are the real-world use cases? A simple explanation that everyone can understand.
@LaravelDaily
@LaravelDaily 3 ай бұрын
I haven't used it myself, so can't explain to others :)
@HadilCharafeddine
@HadilCharafeddine 2 ай бұрын
amazing keep going! 🙏🏻
@franciscomagalhaes7457
@franciscomagalhaes7457 3 ай бұрын
This is helpful, thank you.
@dsuess
@dsuess 3 ай бұрын
Thanks for re-posting passing variables to a View Tip: "Don't use Rails"
@rainfog_mzb
@rainfog_mzb 3 ай бұрын
1:32 Before using to_route(), I usually confuse (how to redirect with route) without looking documentation
@TalesGrechi
@TalesGrechi 3 ай бұрын
These were great tips!
@rakseiify
@rakseiify 3 ай бұрын
2:03 is this only obvious for those that have done a lot of PHP before doing Laravel?
@_plamp_
@_plamp_ 3 ай бұрын
Awesome these are nice to know
@wgblondel
@wgblondel 3 ай бұрын
Thanks for the tips!
@JamesAutoDude
@JamesAutoDude 3 ай бұрын
Another thing is making utilities instead of helpers. Game changer 😮
@elmalleable
@elmalleable 3 ай бұрын
What's the difference?
@holacuba2001
@holacuba2001 3 ай бұрын
Hello Povilas, would have a tip for a redirect with string data? Within a method I sometimes must redirect to another route, with a string value as parameter. The documentation says do this: return redirect()->route('profile', ['id' => 1]); and it works perfectly. Except that my parameter is a string and the URL looks ulgly because the paramater gets passed as a GET. Is there a fix for that?
@LaravelDaily
@LaravelDaily 3 ай бұрын
Not sure, maybe you defined the route the wrong way? I haven't encountered this issue.
@holacuba2001
@holacuba2001 3 ай бұрын
@@LaravelDaily Please try the eample from the book, but with a string parameter (a sentence). As I said, evrything works fine but the URL is ugly.
@LaravelDaily
@LaravelDaily 3 ай бұрын
Sorry, I don't have time to try, could you post the code of your profile route from the routes file?
@michalfrantisek
@michalfrantisek 2 ай бұрын
You must pass HTTP code parameter 307 - Temporary Redirect - to the redirect method. With 307 code you are able to redirect POST request. Please let me know if it helped you. Thanks.
@digitzero3613
@digitzero3613 3 ай бұрын
What's the point of disabling lazy loading? I though Laravel guys recommend it.
@LaravelDaily
@LaravelDaily 3 ай бұрын
Enforcing EAGER loading, to avoid N+1 query problem.
@digitzero3613
@digitzero3613 3 ай бұрын
@@LaravelDaily Ohh excuse me, I am so bad with these terms. I was actually thinking about eager loading but didn't realize that lazy loading is different. Thank you!
14 Quick Laravel Tips in 9 Minutes: May 2024
9:09
Laravel Daily
Рет қаралды 10 М.
Top 5 Laravel "Bad Practices" (My Opinion)
10:32
Laravel Daily
Рет қаралды 22 М.
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
Я сделала самое маленькое в мире мороженое!
00:43
Кушать Хочу
Рет қаралды 4,4 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 19 МЛН
Static Methods in Laravel/PHP: When and How?
10:39
Laravel Daily
Рет қаралды 17 М.
PHP 8 3 Released
11:03
ThePrimeTime
Рет қаралды 108 М.
Laravel vs Rails for Javascript developers
19:50
Sam Lewis
Рет қаралды 5 М.
Common Mistakes in Vue js and How to Avoid Them - Daniel Kelly
29:49
VueConf Toronto
Рет қаралды 8 М.
Laravel's secret weapon: macros (watch me code)
23:46
Aaron Francis
Рет қаралды 23 М.
Structuring Laravel Projects: 2024 Edition
8:38
Laravel Daily
Рет қаралды 13 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 519 М.
Eloquent Where ENUM vs Int Foreign Key: Speed Benchmark
8:53
Laravel Daily
Рет қаралды 5 М.
Laravel First Impressions From A JavaScript Dev
21:08
adamdotdev
Рет қаралды 134 М.
Why Don't We Have A Laravel For JavaScript?
12:36
Theo - t3․gg
Рет қаралды 106 М.