$jsonable with JSON_UNESCAPED_UNICODE

Is it possible to save $jsonable without json_encode/json_decode and write the Cyrillic alphabet to the database immediately in utf-8?

For example:
protected $jsonable = ['content', 'JSON_UNESCAPED_UNICODE']

1 Like

We could add a way to override this functionality in your model, then you could implement it using a trait.

Update: this is how it works natively in 3.x onward