Skip to main content
1 vote
1 answer
45 views

Laravel Scout Meilisearch - Role, Creator, and Updater Attributes Missing After Import Environment: Laravel: 12.0 Scout: 10.13 Scout Driver: Meilisearch I'm using spatie/laravel-permissions for role ...
Mursal Khan's user avatar
1 vote
0 answers
55 views

I am working on a Laravel 11 project using Spatie's Laravel Permission package for role-based access control. I have the following Blade template where I want to conditionally display a sidebar link ...
Sanskar's user avatar
  • 11
0 votes
1 answer
1k views

i am developing REST API laravel 11 app i installed spatie/laravel-permission and i can create a user and assign role successfully also on login i can capture token and role successfully but when i to ...
Silikazi's user avatar
  • 480
0 votes
1 answer
249 views

I am trying to create an accessor that will return the users role name. It is possible to access the getRoleNames() method in the User model? //User Model /** * The accessors to append to the ...
PaulusRagnarrson's user avatar
0 votes
0 answers
51 views

In my Laravel API project, I have a Service for handling quote rejection and a Policy for controlling access based on application type. Here's how I'm managing access to the "Reject" button ...
Andrea Verrecchia's user avatar
0 votes
1 answer
219 views

I'm trying to use UUID for spatie, and followed the instruction from official document. Everything went well until I have to assignRole to user. It return 0 Where it should have same value as role_id ...
Martin Christopher's user avatar
0 votes
1 answer
40 views

I use protected $primaryKey = 'NIM'; public $incrementing = false; protected $keyType = 'string'; (In Mahasiswa Model) it's already fine when store/add data to database but when i want to update the ...
aosasi aoasai's user avatar
0 votes
1 answer
424 views

I was trying to use spatie role and permission but when i try to update role and permission it gives me the above error and highlights the if statement in the function below located inside the user ...
Yeabsra Habtu's user avatar
0 votes
1 answer
902 views

I am facing an issue in setting up the Spite Permissions within my Laravel App I have followed the following guide https://medium.com/@miladev95/step-by-step-guide-to-user-role-and-permission-tutorial-...
Brendan's user avatar
  • 109
0 votes
1 answer
395 views

I am new in Laravel Spatie, and when I fixed some of the problems in my code one by one. When I redirect my view to a webpage (without the middleware route) I can freely access it, but when I do it ...
user23272915's user avatar
0 votes
1 answer
350 views

I'm currently developing an application using Laravel and have encountered a challenge with implementing a two-tier role system. I'm using the laravel-permission package but am struggling to configure ...
Hassan's user avatar
  • 1
2 votes
1 answer
911 views

I'm using Spatie to manage permissions and installed a log-viewer to see logs. The problem is that everyone can see the logs in the address /log-viewer. I want only the administrator to have access to ...
sadasdadssad's user avatar
1 vote
4 answers
4k views

I hope you’re all right. I was wondering if you could take a look at a problem I’ve encountered in a Laravel project that uses Spatie Laravel Permission. The mistake I’m facing is this: Target class [...
Slim Juan's user avatar
-1 votes
1 answer
2k views

I'm working with the Spatie Laravel Permissions package and I want to assign just one role to a user. However, when i try to update the role of the user, rather then overwriting the assigned role, it ...
Lovepreet Singh's user avatar
0 votes
1 answer
720 views

I am currently building a job portal application using laravel 10.x. There will be two types of user roles who will be using the application: Employer Candidate For permissions, I am using [spatie's ...
Nihilarian's user avatar
  • 1,198

15 30 50 per page
1
2 3 4 5
19