Task 8 - belongstomany add

This commit is contained in:
PovilasKorop
2021-11-22 11:46:59 +02:00
parent fc0bf0d079
commit a114584904
8 changed files with 129 additions and 1 deletions
+9 -1
View File
@@ -75,7 +75,7 @@ Test method `test_countries_with_team_size()`.
---
## Task 6. Polymorphic Attachments
## Task 7. Polymorphic Attachments
In the route `/attachments`, the table should show the filenames and the class names of Task and Comment models. Fix the `app/Models/Attachment.php` relationship to make it work.
@@ -83,3 +83,11 @@ Test method `test_attachments_polymorphic()`.
---
## Task 8. Add BelongsToMany Row
In the POST route `/projects`, the project should be saved for a logged-in user, with start_date field from $request. Write that sentence in the Controller.
Test method `test_belongstomany_add()`.
---