Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Giving the customer a UUID - are there any plugins/packages that can do this? If not, how best to manually implement it?

    General Discussion
    2
    2
    1261
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      KiwiNFLFan last edited by

      Hi, I need the customer to have an unchangeable UUID that will be used for external app integration (a field that will always remain the same). I noticed that the current setup does not give the customer such a property, but only an auto-increment ID.

      Are there any packages or plugins for Bagisto that automatically add such a property to the Customer model?

      If there aren't, I will add it manually, but what is the best practice for that? Should it replace the current id field, or should it be an additional property not used by Bagisto itself, but only for the external app integration?

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @KiwiNFLFan,

        Never change the primary key, just try to add one more column and place your custom uuid there.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post