How to get last seven days in laravel? : I am trying last seven days record using below query but it does not working

    DB::table('data_table')
    				->select(DB::raw('SUM(fee) as counter, left(DATE(created_at),10) as date'))
    				->whereIn('user_id',$descendants)
                    ->whereRaw('DATE(created_at) = DATE_SUB(CURDATE(), INTERVAL 7 DAY)')
    				->groupBy(DB::raw('left(DATE(created_at),10)'))
    				->get()

Can someone kindly guide me how make it correct