If you have worked with Laravel and MySQL for a while, you have probably run into this situation: User::where('name', 'john')->get(); You expect this to find only: john But depending on your MySQL collation, it may also match: John JOHN JoHn This happens because many MySQL string comparisons are case-insensitive by default. Laravel 13.x now has... Weiterlesen
Intelligence View
Laravel's New whereBinary(): Simple Case-Sensitive Queries in MySQL
If you have worked with Laravel and MySQL for a while, you have probably run into this situation: User::where('name', 'john')->get(); You expect this to find only: john But depending on your MySQL collation, it…
SOCIAL SHARE CARD GENERATOR