I am trying to seed my DB categories Table with Hebrew content. I can seed my Table with English. can someone please tell me how can I do that?
OK so it is still not working.. I tried using 'utf8_general_ci' and also the "N'אופנה".
There are my files:
database.php
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'charset' => 'utf8',
'collation' => 'utf8_general_ci',
'prefix' => '',
'strict' => false,
]
DatabaseSeeder.php
DB::table('categories')->insert(array(
array('id' => NULL, 'category_name' => "N'אופנה", 'created_at' => date("Y-m-d h:i:s"), 'updated_at' => date("Y-m-d h:i:s") ),
array('id' => NULL, 'category_name' => 'aaa', 'created_at' => date("Y-m-d h:i:s"), 'updated_at' => date("Y-m-d h:i:s") ),
));
database structure
categories structure
categories table
my project encoding