Courses / Laravel Blog API: Intermediate Hands‑On Course
Lesson 9 of 9

Project 2: Comments & Feature Tests

Video by Laravel on YouTube · 22 min. We did not make this video and we do not host it — watching it here still counts as a view for the creator.

Add nested comment routes under posts and ensure proper relationship handling. New developers often forget to validate the post_id existence, causing orphan comments.

Write feature tests with php artisan test to verify authentication, validation, and business rules. Passing tests give confidence for future deployments.

Start learning free

Sign in with WhatsApp, your phone number, email or Google. No password. The same account carries your progress, your certificates and anything else you do with Nexgino later.

Sign in to continue

It takes about fifteen seconds.

Previous All lessons