🔥 Laravel Tip: You can write transaction-aware code
Oct 22, 2022
Using `DB::afterCommit` method you can write code that will only be executed if the transaction gets committed and discarded if the transaction is rolled back.
if there is no transaction, the code will be executed right away
if there is no transaction, the code will be executed right away
Other tips:
🔥 Laravel tip: The Elvis operator.
Jan 29, 2022
🔥 Laravel Tip: Factory states
Mar 2, 2022
🔥 Service provider binding cheat sheet
Mar 13, 2022