Ep15 - Database Transaction | Laravel API Server

Ep15 – Database Transaction | Laravel API Server



Visit for more lessons and content!

Join my newsletter here to get the BEST updates:

Series playlist:

Sometimes we need to run multiple database operations consecutively where each operation is dependent on its predecessors. However, there is no guarantee that all the operations are successful. Let’s see how we can solve this with Transactions.

————

Source code for this lesson:

Subscribe for more:

** Affiliated links
Use the legendary Git GUI for FREE! You are seriously missing out if you are not using it.
Gitkraken:

Beautiful designs created instantly to wow your social networks!
Stencil:

A simple and scalable cloud hosting platform for all developer needs.
Digital Ocean:

Get started on Crypto today. Gets 10% off of all crypto trading fee if you use my referral link below.

Outro Music:
Wayr — Between Our Universes

One thought on “Ep15 – Database Transaction | Laravel API Server

  1. excuse me, I still don't know why need to transaction?
    I think is because when data insert into database failed, then transaction can rollback data.
    But what condition need commit?
    Adn what kind of things(logic) i need to put inside transaction?

Leave a Reply

Your email address will not be published. Required fields are marked *