PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Unsolved

Role displaying "no results" in admin panel

alexmorning

Apr 26th, 2024 11:09 PM

I found a github issue for this from 2017, as well as a devdojo question about this from 2019 (both linked below), and it seems that this issue is still persisting. I cloned the Wave repo for this install maybe a year ago so I am not sure if this has been fixed since then, but if not, does anyone know if a fix has been found?

firefox_2024-04-26-23-06-30.jpg

The links mentioned describe specific scenarios that users see this issue, but for me it's 100% of users no matter if I create them or if they are created through the sign up page, I've never been able to see any user's role here.

Not a super huge deal but it would be a nice thing to fix so I can sort users by role.

thank you!

https://devdojo.com/question/roles-not-saving-when-creating-new-user

https://github.com/thedevdojo/voyager/issues/2130

bobbyiliev

Apr 27th, 2024 10:55 AM

Hey!

Is this only when browsing all users or do you also not see the roles when you try to edit a specific user?

I've tried this on my end but it seems to be working. I will try to look into this further.

Best,

Bobby

alexmorning

Jul 6th, 2024 03:09 AM

@bobbyiliev So sorry! I didn't notice anyone replied and I honestly forgot that I posted this haha

Yes when I go to edit specific users I can see the roles properly, only when browsing all users does this happen.

I have 2 separate websites with wave installs and this happens to them both, although they are both configured similarly. But I do not recall modifying anything other than a bit of basic css for the backend. It's possible that I broke it myself, but I don't recall it ever working.

I should say that I'm on laravel 10 and I think I remember reading from you that Voyager is not compatible, but if there has been a fix for this in the wave github then I definitely do not have the updated files.

thank you!

alexmorning

Jul 6th, 2024 03:24 AM

Update: I updated voyager to 1.7 and everything else in my composer file was updated as well, and it still appears to be happening :/

bobbyiliev

Jul 7th, 2024 09:01 AM

Hey Alex!

No worries at all!

Do you actually have any additional roles added to your users?

I just tested this and it seems to be working as expected on a fresh new install:

Keep in mind that those roles displayed there are for the additional user roles.

The primary role, is displayed as the role_id in the table.

- Bobby

alexmorning

Jul 14th, 2024 03:13 AM

Yeah I definitely have created new roles, but all of them still have role_id's in my db, so It seemed weird that it wasn't displaying properly.

It's definitely not a big deal or something that is worth spending any time on, but I figured it was worth checking if you notice any obvious errors on my part that could cause this.

This is how a few users appear in the db

db

And this is how my roles are set up. Do you see any obvious mistakes?

db

thank you!

bobbyiliev

Jul 15th, 2024 12:27 AM

Hey Alex!

This all looks good, now if you were to edit a user and update its additional roles they should show in the user BREAD as normal:

Let me know if this works!

- Bobby