Comments (4)
Easiest solution would to just upgrade your MySQL server to 5.7 or higher.
I'd accept a PR that fixes this.
from laravel-translatable.
A Quick fix (may need further testing):
in trait HasTranslations modify line 97 from
$this->attributes[$key] = $this->asJson($translations);
to
$this->attributes[$key] = json_encode($translations, JSON_UNESCAPED_UNICODE);
from laravel-translatable.
Could you PR that fix and add some tests?
from laravel-translatable.
Closing this due to inactivity.
from laravel-translatable.
Related Issues (20)
- json binary and collation
- getTranslation() returns null in integer value
- how to get value if we use the alias for particular column name in joining the multiple table
- An issue with Mutators when API request
- Improving laravel-translatable Adding One-to-Many (Polymorphic) HOT 1
- How can i ignore languages key when search in translated data ? HOT 1
- hasSetMutator not work with Laravel Attribute getter/setter
- Updating multiple models
- getting special languages posts with laravel-translatable HOT 3
- Filament 3 - Only update Translatable resource with method update()
- Invalid version string "^8.0.2" HOT 2
- Issue with translating pivot columns using attach
- Search through translations
- Issue with translated json values
- attributes with json not set locale
- Avoid writing one by one - setTranslationsBulk
- Problem using with laravel-sluggable
- Column not found: 1054 Unknown column 'json_extract(...
- Translations gets in the way of pluck() HOT 1
- keys with empty string value are deleted
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-translatable.