Skip to content

Tag: emoji

How to insert emojis in MySQL using Laravel?

My MySQL DB collation is: utf8mb4_unicode_ci As shown below: However when I try to insert it in the table using Laravel – it throws the following error: And this is the store method in my Controller: UPDATE Here is a picture of the challenges table config: Answer This is more of a Database and migration…

Clean emoji in input

How can I clean my form inputs for characters like emojis? For example, when I post a paragraph in a text area with an emoji like this ????, a Record does not gets inserted to database. I can not change …