Task 11 - observers

This commit is contained in:
PovilasKorop
2021-11-16 11:02:41 +02:00
parent cdd8ae6be8
commit c95bc907e7
6 changed files with 79 additions and 0 deletions
+8
View File
@@ -112,3 +112,11 @@ In `app/Http/Controllers/UserController.php` file method `only_active()`, make t
Test method `test_active_users()`.
---
## Task 11. Observers with New Record.
In `app/Http/Controllers/ProjectController.php` file method `store_with_stats()`, create a separate Observer file with an event to perform a +1 in the stats table.
Test method `test_insert_observer()`.
---