framework: Query builder 'where' does not work with russian words

  • Laravel Version: 8.83.16
  • PHP Version: 8.1.7
  • Database Driver & Version: MySQL 8.0.29

Description:

Hi, all.

I’m working with laravel a few years but today I’m facing with strange situation with query builder which does not work correctly.

Steps To Reproduce:

  1. Create combined query: https://github.com/siarheipashkevich/query-builder/blob/54f58dc93bd4474293c6fa5823f7d09f891348f5/tests/Feature/ExampleTest.php#L45
  2. Use like operator in where method: https://github.com/siarheipashkevich/query-builder/blob/master/tests/Feature/ExampleTest.php#L51

I’ve created repository with test for this situation and expected result: https://github.com/siarheipashkevich/query-builder

Please clone and run tests.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23 (21 by maintainers)

Most upvoted comments

Not sure if this is a bug in Laravel per se. Since there’s an easy workaround I’m closing this.

Thanks @rodrigopedra

psr/log dependency requires PHP 8.0, But my system isn’t configured with that. Hope someone else chimes in. Cheers

What do you mean doesn’t not work. Does it error out and gives error, unexpected results? Can you show what you expect and what you get?