Task 4 - get or create a record

This commit is contained in:
PovilasKorop
2021-11-16 08:19:07 +02:00
parent ec68bf7dcd
commit 9a522ae509
4 changed files with 32 additions and 0 deletions
+8
View File
@@ -51,3 +51,11 @@ In `app/Http/Controllers/UserController.php` file method `show($userId)`, fill i
Test method `test_find_user_or_show_404_page()`.
---
## Task 4. Get a Single Record or Create a New Record.
In `app/Http/Controllers/UserController.php` file method `check_create()`, find the user by name and email. If the user is not found, create it (with random password).
Test method `test_check_or_create_user()`.