mirror of
https://github.com/10h30/Test-Laravel-Eloquent-Basics.git
synced 2026-07-13 11:55:52 +09:00
Task 3 - get a single record
This commit is contained in:
@@ -18,4 +18,11 @@ class UserController extends Controller
|
||||
|
||||
return view('users.index', compact('users'));
|
||||
}
|
||||
|
||||
public function show($userId)
|
||||
{
|
||||
$user = NULL; // TASK: find user by $userId or show "404 not found" page
|
||||
|
||||
return view('users.show', compact('user'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user