A Simple Laravel ACL Example

Jordi Bassagañas
Nov 5 · 2 min read

Here are some goods news: Implementing an ACL (access control list) in your Laravel application is actually a snap.

Figure 1. A simple ACL describes how users are granted access to resources

Let me share a simple solution which basically consists in writing a middleware only to match the URL of the incoming request against the permissions stored into the database.

That’s it!

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Jordi Bassagañas

Written by

Hi there! How are you today? I blog about technology, the Internet, SEO, programming tips, PHP and many other things.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade