Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jrdavidson's avatar

@Ruffles I tried it and this is what happened inside of the first array object

roles: [
    {
        id: 1,
        role: "Owner",
        description: "Full access to parts of system.",
        created_at: "2015-04-03 03:42:27",
        updated_at: "2015-04-03 03:42:27",
        deleted_at: null,
        pivot: {
            user_id: 1,
            role_id: 1
        }
    },
    {
        id: 2,
        role: "Administrator",
        description: "Full access to create, edit, updated and delete resources excluding site related content.",
        created_at: "2015-04-03 03:42:27",
        updated_at: "2015-04-03 03:42:27",
        deleted_at: null,
        pivot: {
            user_id: 1,
            role_id: 2
        }   
    }
]
davorminchorov's avatar

That's how it supposed to look like when you have more roles. I was thinking more of when you show them in the HTML table.

davorminchorov's avatar

Show all of them under Roles in the table, and focus on other parts of the application (maybe continue with the details page for the user where you have to show the roles and the permissions of the users etc.)

jrdavidson's avatar

Okay in that case could you finish up with the TestDummy topic and I'll move further along.

Previous

Please or to participate in this conversation.