Skip to main content

All Questions

Tagged with
0 votes
0 answers
20 views

How to make the home page visible only to logged in users? and how to make reader.php page visible only to user with vip role? Laravel

How to make the home page visible only to logged in people? example: If the user is not logged in, a page with 2 options will be displayed with login and register options. picture: https://i.sstatic....
Eren's user avatar
  • 1
0 votes
0 answers
22 views

Permission error with Arch Linux and Laravel

I'm creating a Laravel project, and I'm struggling with permissions. When I first create the project through a terminal command, I have to change the root folder permission to 777 because I can't ...
Telexx's user avatar
  • 551
0 votes
1 answer
17 views

Laravel valet Permission issue

Warning: opendir(/Users/apple/Desktop/programs/ideas): Failed to open directory: Operation not permitted in /Users/apple/.composer/vendor/laravel/valet/cli/Valet/Server.php on line 167 i have valet ...
Hamisu Kimson's user avatar
0 votes
0 answers
37 views

User permissions inside Docker container

I'm trying to set up a Docker Laravel local working environment on Ubuntu 22.04. I've never used Docker before and am using some provided scripts and instructions. Unfortunately the project lead ...
resynth's user avatar
0 votes
1 answer
51 views

Laravel spatie permission many to through? query

I have two tables: Schedules and Tasks, with a one-to-one relation class Schedule extends Model { public function task() { return $this->belongsTo(Task::class, 'task_id'); } And ...
mps's user avatar
  • 455
1 vote
1 answer
106 views

Hierarchical roles for a user, with child roles having different permissions on case based, Laravel Spatie

In the application I am trying to build, I have two portals one for Admins and one for Users. As in a normal case scenario, I might have different Roles for the Admin portal, i.e., Super Admin, Admin, ...
J A's user avatar
  • 13
0 votes
2 answers
97 views

Laravel authorize for users and roles

I am trying to authorize Users and Roles in such a way that each user cannot have access to another's id when it comes to Editing. For example, if I enter the editing page for My Termins(Meetings)(in ...
Andi Gashi's user avatar
0 votes
0 answers
202 views

How to update permissions list with each routing change using CASL in vue 3 with laravel

I'm using Laravel for the backend and Vuejs 3 for the front end. I wanted to implement authentications on buttons and nav bar routes using CASL v6. I used it fine but I need to refresh the page to get ...
Ahmed Alaa El-Din Hassan's user avatar
3 votes
3 answers
8k views

Target class [Spatie\Permission\Middlewares\RoleMiddleware] does not exist

Okay so I'm kinda new to laravel and I'm trying to use Spatie for roles and permission but this error happened, even though I've written the class name in kernel.php here : <?php namespace App\...
Ram's user avatar
  • 33
0 votes
0 answers
18 views

Laravel9 can not write in Docker directory

I have a local Docker container with Laravel application. This app need to write html template to /application/storage/framework/views directory but it throws me an error file_put_contents(/...
Čamo's user avatar
  • 4,044
0 votes
1 answer
315 views

Spatie's wildcard permission or not?

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
0 votes
0 answers
55 views

Laravel package permission denied problem

I cloned my group project and ran composer install then this error occurred: require(C:\xampp\htdocs\hrm\vendor\milantarami\nepali-calendar\src./../config/nepali-calendar.php): Failed to open stream: ...
subash's user avatar
  • 11
1 vote
1 answer
696 views

Managing Permissions for Multiple Team Types (Company Teams and Project Teams) with Spatie Roles and Permissions in Laravel

I'm working on a Laravel application where I need to manage permissions for two types of teams: company teams and project teams. I'm using the Spatie Roles and Permissions package, but I've ...
Umar Nazir's user avatar
0 votes
0 answers
136 views

The given role or permission should use guard

I encountered this problem for which I do not know a solution can you help me ?? i use spatie permission The problem is that when I do work $team->assignRole($roleOwner)it never recognizes the ...
mohammed maher's user avatar
0 votes
1 answer
373 views

Altering permission and roles tables spatie/laravel-permission

I am trying to implement this type of management in my application. Since I haven't done anything like that before this is the guide I followed: https://www.honeybadger.io/blog/user-roles-permissions-...
YRD Nik's user avatar

15 30 50 per page
1
2 3 4 5
23