mirror of
https://github.com/10h30/Test-Laravel-Eloquent-Basics.git
synced 2026-07-11 19:05:53 +09:00
Task 4 - get or create a record
This commit is contained in:
@@ -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()`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user