I a have Laravel DB query like this,
$data = DB::table('jobs')
->select('id', 'customer_id', 'date','time')
->get();
I want to get the day of the date in the select query result. I'm using Carbon::parse()->isoFormat('dddd'); to get the day of the date. I want to pass the date inside of parse() & get the relevant day. I want to be the query result as, ex: 1 , 2 , Monday, 11:30 AM. How can I process that code I mentioned to get the day inside of the select query. Is it possible? Help me with a solution. I'm using Laravel 5.8. Thanks in Advance.