Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Spark Teams? #57

Closed
scottybo opened this issue Jan 8, 2018 · 1 comment
Closed

Support for Spark Teams? #57

scottybo opened this issue Jan 8, 2018 · 1 comment

Comments

@scottybo
Copy link

scottybo commented Jan 8, 2018

Trying to get this to play nicely with Laravel Spark Teams - have modified the Team Model as follows:

use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Mpociot\VatCalculator\Traits\BillableWithinTheEU;

class Team extends Model
{
    use Notifiable, Billable, BillableWithinTheEU {
        BillableWithinTheEU::getTaxPercent insteadof Billable;
    }

But get the following error:

(1/1) FatalErrorExceptionTrait method taxPercentage has not been applied, because there are collisions with other trait methods on Laravel\Spark\Team

Its been a long day so I'm probably missing something obvious, but do you have any ideas?

@scottybo
Copy link
Author

scottybo commented Jan 8, 2018

Ah yes, I'm missing something obvious 👎

Needed to add:
BillableWithinTheEU::taxPercentage insteadof Billable;

Leaving this here incase anyone else needs to this!

@scottybo scottybo closed this as completed Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant