Support the ongoing development of →
Requests Laravel Eloquent
Last updated 2 years 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:

qlixes liked this reply


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

tvbeek liked this reply


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.

© 2024 - All rights reserved.