The Startup
Published in

The Startup

Laravel: Scoping records for the authenticated user

I don’t want you checking all my database records

Photo by Danny Avila on Unsplash

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…




Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

Laravel: Getting the previous and next records

Network Service Mesh: A Big Step Toward Cloud-Native NFV

What is Agile? Dual-Track Agile

They said Spark Streaming simply means Discretized Stream


Laravel: using phpDoc to write more readable code

VulnOS.2 —

Debugging Tools and Techniques: Binary Search.

316: Google Podcasts Manager: How To Add A New or Existing Show

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Italo Baeza Cabrera

Italo Baeza Cabrera

Graphic Designer graduate. Full Stack Web Developer. Retired Tech & Gaming Editor.

More from Medium

Making a Post API in Laravels

Laravel Assertable Json

Livewire Alert in Laravel

How to Test and Send Emails in PHP?

Dino Cajic explaining how to send and test emails in PHP