If you use database transactions and Eloquent observers on one of the Models, you need to make sure that observers are fired only if the full transaction is successful.
Links mentioned in the video:
- Log Viewer package:
- My video review: Laravel Log Viewer with Search
- Laravel Docs: Observers and Database Transactions #observers-and-database-transactions
- My course “Eloquent: Expert Level“
- - - - -
Support the channel by checking out my products:
- My Laravel courses:
- Filament examples:
- Livewire Kit Components:
- - - - -
Other places to follow:
- My weekly Laravel newsletter:
- My personal Twitter:
1 view
48
10
4 years ago 00:07:17 12
Laravel JSON DB Columns: Worth Using Them?
5 years ago 00:05:24 58
Demo: Laravel Video Portal and DB Schema Generator
5 years ago 00:03:42 21
Important: Laravel . Default DB Host Change
4 years ago 00:08:32 22
Laravel Invoker: Manage DB Data Conveniently [REVIEW]
5 years ago 00:03:51 18
Laravel DB Transactions: Example When/How to Use Them
2 years ago 00:03:56 9
Laravel: Multi-Step Validation with DB Transactions
5 years ago 00:03:17 22
Laravel Mini-Project: DB Schema for Hotel Bookings
5 years ago 00:03:39 19
Laravel: Eloquent “Tricks“ to Query Dates from DB
4 years ago 00:02:34 10
Laravel BelongsToMany: Multi-Attach - Avoid Extra DB Queries
5 years ago 00:05:32 20
Laravel DB Transactions: Rollback on Error [Registration Example]
3 years ago 00:02:25 9
Laravel DB Raw Queries: SQL Injection - How to Protect
4 years ago 00:09:11 20
Laravel DB Custom Fields with EAV-Model: Worth It?
5 years ago 00:03:53 95
Seeding 50k DB Rows in Laravel: Create, Insert or Chunk?
5 years ago 00:11:31 12
How to Safely Change DB Relations in Live Laravel Project?
2 years ago 00:05:41 8
Laravel: Separate DB Tables for Roles? I Don’t Recommend It
11 months ago 00:08:54 3
Duplicate Pivot Rows? Laravel vs DB Solution
2 years ago 00:05:26 4
Laravel Pulse DB Queries: Indexing, JSON, Collections
1 year ago 00:04:50 7
DB Transactions in Laravel: Two Practical Examples
2 years ago 00:03:49 3
Laravel: Raw SQL Queries with DB::select()
2 years ago 00:02:43 3
Laravel Package: Generate Validation Rules From DB
12 months ago 00:03:03 1
Laravel DB Transactions and Observers: Be Careful
1 year ago 00:43:40 17
Laravel 10. Работа с БД. Фасад DB
2 years ago 00:03:17 3
DB Structure: 3 Mistakes Laravel Developers Make
4 years ago 00:11:25 3
Multi-Language Laravel: Part 3 - Packages for DB Models