All Questions
Tagged with permissions laravel
334
questions
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....
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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\...
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(/...
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 ...
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: ...
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 ...
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 ...
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-...