How can i do that?

|
Eshpashol 2021-02-21 17:43:46
Do anybody has a item look like these?
Eshpashol 2021-02-21 17:43:59
Badly need some help guys
pardeep9218 2021-02-21 17:49:19
Download cyto webcopy and copy theme
natghi2010 2021-02-21 18:23:58
Hi, Im trying to find a function to retrieve days of the week with carbon
natghi2010 2021-02-21 18:24:14
how can i do that?
nazmulpcc 2021-02-21 18:25:34
natghi2010 2021-02-21 18:23:58
Hi, Im trying to find a function to retrieve days of the week with carbon

for example?

rootkings 2021-02-21 18:26:30
natghi2010 2021-02-21 18:24:14
how can i do that?

Carbon::now()->dayOfWeek

rootkings 2021-02-21 18:26:45
More detail: https://carbon.nesbot.com/docs/#api-getters
natghi2010 2021-02-21 18:27:21
nazmulpcc 2021-02-21 18:25:34
for example?

I want to get days of this week in this format
[
’15-02-2021′,
’16-02-2021′,
’17-02.2021
]

natghi2010 2021-02-21 18:27:51
to populate this graph
natghi2010 2021-02-21 18:28:10
rootkings 2021-02-21 18:26:30
Carbon::now()->dayOfWeek

laravel_discuss-71129.jpg

rootkings 2021-02-21 18:28:53
natghi2010 2021-02-21 18:28:10

So what you expected?

natghi2010 2021-02-21 18:29:30
i need to do seperate quieries
natghi2010 2021-02-21 18:29:42
rootkings 2021-02-21 18:28:53
So what you expected?

thats why I need to break them apart and loop

Suryaa_shanmugam 2021-02-21 18:30:15
Hey guys!! Any of you worked on commenting system in laravel
Suryaa_shanmugam 2021-02-21 18:30:27
Front end angular and back-end laravel
Suryaa_shanmugam 2021-02-21 18:32:09
my requirement is frontend angular
Soumen954 2021-02-21 18:48:01
anyone know about elasticsearch so please give me some concept how to use
The_Hardik_Sisodia 2021-02-21 18:59:29
natghi2010 2021-02-21 18:29:30
i need to do seperate quieries

can you tell what output are you expecting

natghi2010 2021-02-21 19:05:48
The_Hardik_Sisodia 2021-02-21 18:59:29
can you tell what output are you expecting

I have a data, and I wanted to divide it the data according to the day of the week

natghi2010 2021-02-21 19:06:03
as to track daily sales
natghi2010 2021-02-21 19:06:16
on a weekly basis
natghi2010 2021-02-21 19:06:35
on the graph, it should say on monday 20 sold, tuesday 40 sold
The_Hardik_Sisodia 2021-02-21 19:07:16
natghi2010 2021-02-21 18:27:21
I want to get days of this week in this format
[
’15-02-2021′,
’16-02-2021′,
’17-02.2021
]

and this is the data you have which you talking about

natghi2010 2021-02-21 19:08:53
The_Hardik_Sisodia 2021-02-21 19:07:16
and this is the data you have which you talking about

thats the search paremeter

The_Hardik_Sisodia 2021-02-21 19:11:25
Are you looking for something like this?

Carbon::make($date)->format(‘D’);

The_Hardik_Sisodia 2021-02-21 19:11:43
this will convert your date to day
natghi2010 2021-02-21 19:12:42
laravel_discuss-71148.jpg

natghi2010 2021-02-21 19:13:04
The_Hardik_Sisodia 2021-02-21 19:11:25
Are you looking for something like this?

Carbon::make($date)->format(‘D’);

this is what i had in mind

natghi2010 2021-02-21 19:13:21
The_Hardik_Sisodia 2021-02-21 19:11:25
Are you looking for something like this?

Carbon::make($date)->format(‘D’);

the issue is how to get a list of the days of this week

natghi2010 2021-02-21 19:13:38
dates of monday-sunday
natghi2010 2021-02-21 19:14:28
natghi2010 2021-02-21 19:12:42

the third elemnt of the array is typo, its supposed to say 17-02-2021.

The_Hardik_Sisodia 2021-02-21 19:18:16
$days_of_week=[
’15-02-2021′,
’16-02-2021′,
’17-02-2021′
];
foreach($days_of_week as $days)
{
echo $date=Carbon::make($days)->format(‘D’).”<br>”;
}
The_Hardik_Sisodia 2021-02-21 19:18:35
Mon
Tue
Wed
natghi2010 2021-02-21 19:19:07
The_Hardik_Sisodia 2021-02-21 19:18:35
Mon
Tue
Wed

but how do you know?

|