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

Show countdown between 2 columns in table #7

Closed
robertnicjoo opened this issue Oct 18, 2017 · 2 comments
Closed

Show countdown between 2 columns in table #7

robertnicjoo opened this issue Oct 18, 2017 · 2 comments

Comments

@robertnicjoo
Copy link

robertnicjoo commented Oct 18, 2017

Hi,

How can I show time difference between 2 column?

Explain:

I have discount_date column in my products table and I want to show countdown between updated_at and discount_date .

How do I do that?

PS: I also get

Non-static method jpmurray\LaravelCountdown\Countdown::from() should not be called statically

when i use sample in codes in this package.

@robertnicjoo
Copy link
Author

any help?

@jpmurray
Copy link
Owner

jpmurray commented Nov 3, 2017

@robertnicjoo for the non-static method, there is a problem with the auto-loading of facades. See #6 (comment) for a quick fix.

After that, you only need to do the first example in the usage section of the readme.

@jpmurray jpmurray closed this as completed Nov 3, 2017
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

2 participants