FareedR
2 months ago

How to not loop the same data in foreach ?

Posted 2 months ago by FareedR

Currently I need to display selection of created_at for searching . How can I loop only ONE date . For an example

//db

id | title |created_at | 
1	A	2020-02-3
2	B	2020-02-3
3     	C	2020-02-3
4      D	2020-02-4

//current result
2020-02-3
2020-02-3
2020-02-3
2020-02-4

//expected result
2020-02-3
2020-02-4

Please sign in or create an account to participate in this conversation.