StackOverflow Questions for Tag: laravel-gate

Marianne Hartigan
Marianne Hartigan

Reputation: 25

Using Gates in Laravel 11 for view functionality

Score: 1

Views: 34

Answers: 1

Read More
MrCakes
MrCakes

Reputation: 165

Laravel UserPolicy not working properly without models

Score: 3

Views: 57

Answers: 1

Read More
vimuth
vimuth

Reputation: 5612

Laravel gates only take first item in array

Score: 0

Views: 17

Answers: 1

Read More
Coder
Coder

Reputation: 23

What is the main difference between gates and middlewares in laravel?

Score: 1

Views: 428

Answers: 2

Read More
Magmatic
Magmatic

Reputation: 1951

In Laravel, how can you use a Gate if you're using custom authentication?

Score: 0

Views: 2606

Answers: 4

Read More
Hopex Development
Hopex Development

Reputation: 191

Why does the combination of Laravel Gate and Policy return NULL when logging in to a message?

Score: 0

Views: 345

Answers: 1

Read More
rifqy abdl
rifqy abdl

Reputation: 311

best practice to define several gates that checks over the same thing

Score: 0

Views: 71

Answers: 0

Read More
Mushlih Almubarak
Mushlih Almubarak

Reputation: 97

$this->authorize('gate-name') in laravel 9 with 2 parameters

Score: 0

Views: 1059

Answers: 1

Read More
Nicolas Riderelli
Nicolas Riderelli

Reputation: 41

Laravel Gates using model and returns "Using $this when not in object context" Line 28 of AzureUser model

Score: 0

Views: 1033

Answers: 1

Read More
Peter Amo
Peter Amo

Reputation: 201

How to add OR for adding multiple gate permissions at construct method of controller

Score: 0

Views: 296

Answers: 1

Read More
Peter Amo
Peter Amo

Reputation: 201

Gate not allows user while he has already that permission

Score: 2

Views: 867

Answers: 1

Read More
Trayer
Trayer

Reputation: 11

Access rights on Laravel gates not detected

Score: 1

Views: 304

Answers: 0

Read More
Magmatic
Magmatic

Reputation: 1951

In Laravel, how do you use a "cannot" in a Route::middleware group?

Score: 2

Views: 838

Answers: 1

Read More
Atiq Samtia
Atiq Samtia

Reputation: 114

Gate::after(): returning a not null value do not alter the result of the authorization

Score: 2

Views: 271

Answers: 2

Read More
stephen waweru99
stephen waweru99

Reputation: 141

Argument 1 passed to App\Models\User::hasAnyRoles() must be of the type array, string given

Score: 0

Views: 2446

Answers: 1

Read More
Abdulqader
Abdulqader

Reputation: 1

why is my Gate always denied the request on laravel

Score: 0

Views: 289

Answers: 0

Read More

Gate Define not working for other users except whose role_id is 1

Score: 0

Views: 1665

Answers: 1

Read More
Aakash Sharma
Aakash Sharma

Reputation: 13

Laravel 8 Gate issue iam trying to check condition with different model but there are error show

Score: -1

Views: 986

Answers: 1

Read More
Raj
Raj

Reputation: 95

How can I get my custom gate working in Laravel?

Score: 0

Views: 1967

Answers: 1

Read More
Zak
Zak

Reputation: 195

How to pass more than one gate in middleware? (Laravel)

Score: 3

Views: 5424

Answers: 1

Read More
PreviousPage 1Next