Skip to content

Query Expression with laravel 10 and whereRaw query #797

@Rasoul-Karimi

Description

@Rasoul-Karimi

hi
i update to laravel 10 from 9 and everywhere is use whereRaw query, i get this error:

`2023-08-16 13:11:00] local.ERROR: [ "status Code:" 0] "Object of class Illuminate\Database\Query\Expression could not be converted to string" on line of file

[2023-08-16 13:11:00] local.ERROR: Object of class Illuminate\Database\Query\Expression could not be converted to string {"userId":1,"exception":"[object] (Error(code: 0): Object of class Illuminate\Database\Query\Expression could not be converted to string at /srv/www/site.com/api/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php:222)`

before updating, all of these queries work very will!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions