Navigation

    Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. rndwiga254
    R
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    rndwiga254

    @rndwiga254

    0
    Reputation
    2
    Posts
    4
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    rndwiga254 Follow

    Posts made by rndwiga254

    • RE: I need to deliver the Api token from the json response not the header

      Heads up people!

      After 6 hours of digging through the code base this line stood out:

      $this->guard = request()->has('token') ? 'api' : 'customer';
      

      It means even if you have the header set correctly, your mobile application will still not authenticate. So, to solve this, what you need to do is add:

      cartItem.put("token",sharedPref.getCustomerApiToken());
      

      On all objects that need to be authenticated. If stuck reach-out.

      posted in Modules
      R
      rndwiga254
    • RE: Integrated Bagisto in to an existing Laravel project application

      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

      posted in Installing Bagisto
      R
      rndwiga254