Laravel: Scoping records for the authenticated user
I don’t want you checking all my database records
When a given User is authenticated, it’s normal to let him roam inside the application and retrieve records by the given ID, among other things.
Take for example an application that manages Photo Albums. As you can guess, an Album can have many Photos. The user can view…