Bagisto Forum

    Bagisto

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

    Custom Package dependencies

    Knowledge Base
    2
    2
    347
    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.
    • A
      Akhil last edited by

      Hi,

      I am crating my own custom package in bagisto, for that i need to call some dependencies which i have mentioned in my composer.json file, lets say specific php version and below modules

          "spatie/eloquent-sortable": "^3.11",
          "spatie/laravel-sluggable": "^2.6",
          "spatie/laravel-translatable": "^4.6",
          "stripe/stripe-php": "^7.107",
      

      I got stuck on this that, on which location this dependencies I need to install them?

      1) MyProject/Packages/Bagisto/MyCustomPackage/Vendor
      OR
      2) MyProject/Vendor

      I am asking this because the same dependencies are already installed in my project, do i have to re-download them in (1) path OR I can use the existing one from the path (2).

      If the version is different in both composer file, it will create an error?

      1 Reply Last reply Reply Quote 0
      • A
        Amitk-Webkul last edited by

        Hi there,
        You have to install them below.
        Path- MyProject/Packages/Bagisto/MyCustomPackage/Vendor

        Yes, you can use the existing dependencies but if the versions are different then it can create the error.

        1 Reply Last reply Reply Quote 0
        • Referenced by  O Okumura 
        • First post
          Last post