Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
996 views
in Technique[技术] by (71.8m points)

eloquent - Dynamic fetching Laravel based on date

I have an order management system website, which uses Laravel and I need to add a function. I have a database and table "orders" which have few columns and two of them are "price" and "date". I want to fetch prices from the database based on the date which is selected by a user. I will show you an example:

This is a Shopify's date picker

This is stats based on a selected date

A very important detail is that when the user chooses a date and then changes it, the webpage is not redirected anywhere, changes are visible immediately.

You can freely suggest to me a structure of the webpage, at this moment I have OrdersController which has its own functionality, I am going to add this feature from scratch and I have not idea how to start

question from:https://stackoverflow.com/questions/65857514/dynamic-fetching-laravel-based-on-date

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...