No video

Laravel: WAY BETTER Exception handling in 10 minutes

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

Przemysław Przyłucki

Przemysław Przyłucki

Күн бұрын

👇 Code repo & details 👇
In this video we'll expand on the previous video I made about exception handling in Laravel, and I'll try to propose a new solution.
Code:
github.com/saa...
Previous video:
• Laravel: The BEST way ...
About me:
przemyslawprzy...
X / Twitter:
x.com/przylucki_p
More content (soon):
saaslaravel.com

Пікірлер: 10
@mouhamaddiop1144
@mouhamaddiop1144 11 ай бұрын
I absolutely love ❤ your videos, they hold immense value. Creating functional features is great, but ensuring they are developed in a way that facilitates easy maintenance is a whole different level. Thank you for your videos, and you truly deserve many more subscribers.
@saaslaravel
@saaslaravel 11 ай бұрын
Thank you so much! This means a lot!
@alexismontilla8637
@alexismontilla8637 8 ай бұрын
Excellent video! thank you! Could you centralize all the error logs in the same handler? and so when there is an exception monitor it either in a file or in a database. How do you manage the whole log system for a robust application?
@impulserr
@impulserr 6 ай бұрын
Nice!
@ridwanurrahim9736
@ridwanurrahim9736 7 ай бұрын
excellent
@josermzte
@josermzte 11 ай бұрын
Comment for the algo
@spicynoodle7419
@spicynoodle7419 11 ай бұрын
Yikes, switch(true) is such a nasty language feature. Pls avoid
@saaslaravel
@saaslaravel 11 ай бұрын
I wish we had range matching like in rust but that's not the case unfortunately 😕
@gamenation9706
@gamenation9706 8 ай бұрын
Could you suggest a better way to do it please ?
@spicynoodle7419
@spicynoodle7419 8 ай бұрын
@@gamenation9706 There are if-else. If you have a defined enum to switch over, it's more clear and performant to first switch on the enum and inside the case statement do an additional if-else. If you somehow think if-else is ugly, there is the State Pattern. You can also take other architectural decisions ahead of time to make sure you have precomputed enum values that you could use in a match ($enum) statement without additional if-else. switch (true) or match (true) is a huge code smell. You're either trying to be too fancy or you're fixing problems that you shouldn't have in the first place.
Laravel: The BEST way to handle exceptions
9:29
Przemysław Przyłucki
Рет қаралды 15 М.
Sunglasses Didn't Cover For Me! 🫢
00:12
Polar Reacts
Рет қаралды 5 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 95 МЛН
Can A Seed Grow In Your Nose? 🤔
00:33
Zack D. Films
Рет қаралды 32 МЛН
Разбор Error Handling в Laravel. Под капотом Laravel
25:50
Просто о Laravel. CutCode
Рет қаралды 2,2 М.
Laravel: Repository Pattern in practice
27:13
Przemysław Przyłucki
Рет қаралды 11 М.
Livewire vs. Inertia
11:05
Laravel Magazine
Рет қаралды 3,8 М.
Refactor "Senior" PHP Code with Early Returns
12:09
Laravel Daily
Рет қаралды 26 М.
Laravel: 1,000,000 webhooks/minute?! Ingest webhooks like a PRO
20:51
Przemysław Przyłucki
Рет қаралды 4,4 М.
Exceptions in Laravel: Why/How to Use and Create Your Own
12:18
Laravel Daily
Рет қаралды 87 М.
Learnings from our multi-tenant Laravel application
9:58
Sabatino Talks Dev
Рет қаралды 13 М.
File Upload in Laravel: Main Things You Need To Know
13:58
Laravel Daily
Рет қаралды 22 М.
Laravel: Avoid Try-Catch In Every Method (What To Do Instead)
4:45
Laravel Daily
Рет қаралды 31 М.
Laravel + Service Pattern + DTOs = ❤️❤️❤️
17:52
Przemysław Przyłucki
Рет қаралды 46 М.
Sunglasses Didn't Cover For Me! 🫢
00:12
Polar Reacts
Рет қаралды 5 МЛН