Recent Topics

Integrated Bagisto in to an existing Laravel project application



  • I need to know if i can integrat Bagisto in to an existing project without changing the codes, i already added prefix into all the tables of my project.
    i want to know, just by changing the routes, can i access to both projects! the only thing that would get share between these 2 projects are the header, and we might include some of the Bagisto blades into the project, is it possible?



  • Hi @Md

    Currently we do not support this type of architecture.

    Thanks



  • Officially, its not supported. But there is a dirty sure way of going about it. Here is what I did:

    1. Installed bagisto as recommended
    2. move the vendor/bagisto/bagisto folder to packages.
    3. Edit the main composer.json file changing
    "bagisto/bagisto": "2.*"
    

    to

    "bagisto/bagisto": "@dev"
    
    1. Edit the main composer.json file adding repository array like:
    "repositories": [
            {
                "type": "path",
                "url": "packages/bagisto",
                "options": {
                    "symlink": true
                }
            }
        ]
    
    1. Then run composer update

    b3011d7e-afe9-4710-9185-f5b533711d7d-image.png


Log in to reply