@vincent15000 If a user types an existing route directly in the browser, you use both authentication and authorization to verify the user is authorized.
Say my id is 251. Another user tries to put in my id or some other.
In a query you need to make sure that the Auth::id() is used, so the other user cannot see or edit my data.
I would use URL data sparingly. But data is protected by the way queries are written.
An example portion of a query:
$userid = Auth::user()->id;
$query->where('ownerid', '=', $userid); // authenticated user check
Now if someone has entered another id or wrong id, then an error would be thrown.
If someone did do this, well they are probably trying to hack.
Edit:
Of course I wouldn't worry about it if just browsing products. For example you can browse Amazon without a login, but to buy you login.
Edit 2:
Notice the URL on laracasts https://laracasts.com/discuss?filter_by=contributed_to
Really nothing to change, but I am sure the auth id is used for a query.