mirror of
https://github.com/10h30/Test-Eloquent-Relationships.git
synced 2026-07-11 10:46:13 +09:00
Taks 4 - belongsToMany pivot
This commit is contained in:
@@ -51,3 +51,11 @@ Test method `test_show_users_comments()`.
|
||||
|
||||
---
|
||||
|
||||
## Task 4. BelongsToMany - Pivot Table Name.
|
||||
|
||||
In the route `/roles`, the table should load the roles with the number of users belonging to them. But the relationship in `app/Models/Role.php` model is defined incorrectly, fix that relationship definition.
|
||||
|
||||
Test method `test_show_roles_with_users()`.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user