Laravel 5.1 utf-8 saving to database
- config you database file to
utf8_unicode_ci
Check the file config/database.php
:
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
Make sure your Mysql databases is set to
utf8
and MySQL’sutf8mb4
is betterMake sure your file character set to
UTF-8 without BOM
I personally think you problem in you IDE, try to use Atom.