Support the ongoing development of →
Requests Laravel Eloquent
Last updated 10 months ago.
moderator Solution

The raw method doesn't have a second parameter, see:

I think you can use the whereRaw function:

        $response = DB::table('user_score_events')
            ->whereRaw("score_daily = '?'", [$request->start_date]))

See the documentation for more raw options:


Yes, you're right Sir. I'm sorry for my's already solved. Thank you a lot


Sign in to participate in this thread!


Your banner here too?

qlixes qlixes Joined 11 Sep 2019


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.