Giter Club home page Giter Club logo

Comments (15)

Omranic avatar Omranic commented on May 24, 2024

Didn't try both together before, but PRs are always welcome 😉

from laravel-subscriptions.

insign avatar insign commented on May 24, 2024

I fixed it using the php documentation. It is ugly, but solves the problem in the official way.

use Billable, HasSubscriptions {
      Billable::newSubscription insteadof HasSubscriptions;
      Billable::subscription insteadof HasSubscriptions;
      Billable::subscriptions insteadof HasSubscriptions;
      HasSubscriptions::newSubscription as _newSubscription;
      HasSubscriptions::subscription as _subscription;
      HasSubscriptions::subscriptions as _subscriptions;
   }

from laravel-subscriptions.

insign avatar insign commented on May 24, 2024

@Omranic a PR probably would use new functions names, what you think about that?

from laravel-subscriptions.

insign avatar insign commented on May 24, 2024

A made a PR #74 without breaking changes.

from laravel-subscriptions.

Omranic avatar Omranic commented on May 24, 2024

This is now fixed in 3eedf73

from laravel-subscriptions.

Bariskau avatar Bariskau commented on May 24, 2024

@Omranic Still have the same problem.

from laravel-subscriptions.

insign avatar insign commented on May 24, 2024

Not tested yet. But is this a breaking change?

from laravel-subscriptions.

Omranic avatar Omranic commented on May 24, 2024

@Bariskau what problem do you still have, can you please explain in more details..

@insign Yes, function and trait renames.

from laravel-subscriptions.

Bariskau avatar Bariskau commented on May 24, 2024

@Omranic Cashier basically just takes care of the stripe payment part. We have to create user limitations or plan information ourselves. That takes a lot of time. This package offers them, it just can't get paid. We already handle this with cashier. For this reason, it support will be good for many people to work with cashier.

If support will not be given, I recommend this package to interested people. You can manage the quota through Cashier.

from laravel-subscriptions.

Omranic avatar Omranic commented on May 24, 2024

@Bariskau TBH I still didn't get your points, so what's the issue related to this package exactly?

What you explained is correct, and it's mentioned already in the docs, this package doesn't handle payment.

from laravel-subscriptions.

insign avatar insign commented on May 24, 2024

@Bariskau is right. HasSubscriptions trait from laravel-subscriptions keeps colliding with Billable trait from Cashier.

It's sad that this issue is so old, had many major new version, and it keeps the same function names...

from laravel-subscriptions.

Omranic avatar Omranic commented on May 24, 2024

OK, now I see why's the complains! All these issues were already fixed long time ago, but wasn't merged into master branch, it was staying in the develop and not tagged yet. I've tagged a new release now v6.0.1 which should include all of these fixes! 🚨⚠️ WARNING: BACKWARD INCOMPATIBLE

Let me know if there's still anything conflicting with Cashier.

from laravel-subscriptions.

insign avatar insign commented on May 24, 2024

from laravel-subscriptions.

Omranic avatar Omranic commented on May 24, 2024

Yes, we should be following semver, and the major changes in v6.x was meant to be this change mainly, hence the major release, however I just noticed it wasn't merged into it. So I tagged a new minor version, which is probably not kosher from a semver perspective!

Anyway, the backward incompatibility issues is because of the function renames that solve the previous Cashier conflicts, nothing else.

from laravel-subscriptions.

insign avatar insign commented on May 24, 2024

Thank you, now looks great!

from laravel-subscriptions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.