Junior Code Review: Try-Catch and DB Transactions

preview_player
Показать описание
Another Laravel code review, discussing two topics related to the same problem: overengineering.

Related videos:

CRUD-based reviews:

- - - - -
Support the channel by checking out our products:
Рекомендации по теме
Комментарии
Автор

Why is this channel not more popular? All of his content is first class and addresses real world issues!

islandblaze
Автор

In my opinion only channel here discusses laravel functions in detail, thank you

holiqibrahim
Автор

Like this codereview format. Keep it going.

AlexanderKotlyarov
Автор

Hi!! Thank you so much for your videos, very simple, helpfull and comprensive, from Chile 🇨🇱!!

cristianbasaez
Автор

Bro! I have a year using laravel to créate my projects and your content have been so greate! Thanks

jimmyvasquez
Автор

This is great review, I love to see more like this, real case in programming world.
May we have big code project review, like from route -> middleware -> service provider -> controller

bboydarknesz
Автор

There is one example where wrapping a simple insert in a transaction could be useful: you can specify a second parameter which allows you to automatically retry the transaction in case it fails due to a deadlock or similar issue.

JonnyJKF
Автор

here I am, one of those juniors lol
thanks a lot for the advice!

madezine
Автор

In first example we don't see a context of this save method on that model. This method could be overriden inside model with some additional sql inserts/updates/deletes.

No need to use Carbon::parse, when in model u add date to model property $dates. Same to message attribute - we can use mutator inside model for this. Finally I would prefer using create method over save - sth like Contact::create($request->validated()), but in this case model property $fillable should be added to model with specific fields to save.

pritek
Автор

So amazing, your review are soo good sir. It Just im not understand laravel. I only understand python-django. But still your code review are good

erlanggapb
Автор

I always look forward to when you say the words "Hello Guys", "Posts" and "Request". That sounds so nice! 😊

Is there any way to send you my code or is there somewhere to apply? :)

konstruktion
Автор

Thank you a lot for your greate job.Can you tell me what is the color scheme used in your phpstorm?

Jonstonrich
Автор

I feel if validation is properly done most times db transaction is not necessary.. thats my personal opinion, i use db transaction when i deal with relationship in case a model is deleted while the code is executed... Maybe yo do a tutorial on database concurrency in laravel.. thanks

spartacusyusuf
Автор

Thank you for your great content, can you please talk about composed primary key and how we can use them in laravel

abdomohammed
Автор

Thanks for this video, do you have any video's on a multi-tenant laravel application (each customer has their own database and you switch based on who is logged in)?

This could be a nice topic as a video. I personally would like to see how this would all interact with jobs/queues etc...

Michielofzo
Автор

Do you post requests on topic somewhere so that people can send in their code specific to that topic?

weeb
Автор

sir i asked question what is the feature of bootstrap with laravel because laravel use taliwind css framework in laravel 8 jetstream

junaidwaqas
Автор

4:14 i think it should keep that transaction. for something like model events or model observers.

mix
Автор

hi sir any tutorials of implementing event sourcing in laravel application. thanks

kenjohnsiosan
Автор

how in try catch data insert update i use orm

danishkhan