Skip to content

Commit d4a8f69

Browse files
committed
Update query to add compatibility with MySQL 5.6
1 parent b0acc51 commit d4a8f69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UniqueTranslationValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ protected function isUnique($value, $name, $locale, $parameters)
229229
*/
230230
protected function findTranslation($connection, $table, $column, $locale, $value)
231231
{
232-
return DB::connection($connection)->table($table)->where("{$column}->{$locale}", '=', $value);
232+
return DB::connection($connection)->table($table)->where($column, 'LIKE', "%\"{$locale}\":\"{$value}\"%");
233233
}
234234

235235
/**

0 commit comments

Comments
 (0)