Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bondas25's avatar

Roles and permissions in native laravel

Hello guys, I'm new to laravel and I want to create user authentication with roles and permissions with native laravel without any packages. Is there a guide that can help me to do that?

0 likes
5 replies
topvillas's avatar

It's very simple. You just need a roles table/model and a many to many relationship.

clay's avatar

In the past, I've used a couple of different packages for this, but recently, I've found that it isn't very difficult to implement and you'll have much more control if you do it yourself. Jeffrey has a video that may help: Roles and Permissions Here is the github repo for that video.

The video is for Laravel 5.1, but it should still get you started.

Please or to participate in this conversation.