PHP-051 / Intermediate
Missing scope in route model binding
Why is this a problem?
Child resources are retrieved independently of the parent, allowing access to another user's data.
How to fix it
php
Route::get('/posts/{post}/comments/{comment}', ...)->scopeBindings();