Support the ongoing development of Laravel.io →
posted 2 weeks ago
0
moderator

Hello @jamescarr

Welcome and I hope you enjoy working with Laravel :)

I see that you link to a repository with a Laravel project. Can you tell what is your exact question? And maybe post some code blocks that are related to your question?

amethgaye liked this reply

1

Sure... basically the approach I took is to use spatie/laravel-permission for adding roles to users and used this filament User Resource to gate who is allowed to edit other users based on if they have the admin role.

it works, just generally curious if it is the right approach? Felt like a lot of lifting and I wasn't sure.

amethgaye liked this reply

1

Sign in to participate in this thread!

Eventy

Your banner here too?

James Carr jamescarr Joined 2 Oct 2024

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.