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

How to use built-in tax feature? #683

Open
NekaDavaa opened this issue Oct 16, 2024 · 0 comments
Open

How to use built-in tax feature? #683

NekaDavaa opened this issue Oct 16, 2024 · 0 comments

Comments

@NekaDavaa
Copy link

Hi, in docs you mentioned to implement Taxable interface and use the HasTax trait, but where? I am just using the facade:

public function getSubTotal()
    {
        if (request()->ajax()) {
            return response()->json([
                'success' => true,
                'subtotal' => Cart::subtotal()
            ]);
        }

        return Cart::subtotal();
    }

Is there option to make model for that? Can you help me to use tax feature with the facade? Thankss

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