Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bouncer::role() return empty array #627

Open
oksim14 opened this issue Apr 21, 2023 · 2 comments
Open

Bouncer::role() return empty array #627

oksim14 opened this issue Apr 21, 2023 · 2 comments

Comments

@oksim14
Copy link

oksim14 commented Apr 21, 2023

Hello, I have a little issue.

I'm using laravel/framework v9.52.6 , but tried on v10 with same results.

Bouncer version "silber/bouncer": "v1.0.0", - all works fine:

In tinker:

$roles = Bouncer::role()->pluck('name');
= Illuminate\Support\Collection {#8519
    all: [
      "admin",
      .... many more roles here

After update to version "silber/bouncer": "v1.0.1", nothing else changed and result is:

$roles = Bouncer::role()->pluck('name');
= Illuminate\Support\Collection {#8260
    all: [],
  }

This is for me critical, because I need update to laravel 10 and in seeder it works (doesn't works) same like in tinker (empty array).

Thank you

@JosephSilber
Copy link
Owner

That doesn't sound right 😮

Can you create a small demo repository that recreates this issue?

@JosephSilber
Copy link
Owner

BTW, are you using scopes? Have you seen #628? Do you think it's the same change causing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants