Skip to content

laravel + datatables + pivot table (belongtomany) update help!!! #7

Description

@kishanmanokaran

user - id, name, designation
role - id, name
user_role - id, user_id, role_id

Result
1 | John | Manager | Admin, User
2 | Peter | HR | Admin

I am able to populate the result shown above based on your script.
I am also able to update the name and designation of the users tables but not able to update the user_role tables. Kindly advice me on how to fix this issue?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions