Skip to content

Commit

Permalink
fix default language in seeder
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin committed Oct 21, 2024
1 parent d9d7915 commit 0ccb744
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion database/seeds/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,16 @@ class DatabaseSeeder extends Seeder
*/
public function run()
{
$lang = ENV('LANG');
if (($lang!=="fr")&&($lang!=="de"))
$lang="en";

DB::table('users')->insert([
'login' => 'admin',
'name' => 'Administrator',
'title' => 'Pirate Captain',
'role' => 1,
'language' => 'en',
'language' => $lang,
'email' => 'admin@admin.localhost',
'password' => bcrypt('admin'),
]);
Expand Down

0 comments on commit 0ccb744

Please sign in to comment.