Skip to content

Commit

Permalink
[#] fix #399
Browse files Browse the repository at this point in the history
  • Loading branch information
WangNingkai committed Mar 5, 2021
1 parent 1ae3034 commit 6c0cf20
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions database/seeds/UsersTableSeeder.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<?php

use Illuminate\Database\Seeder;
use DB;
use Schema;

class UsersTableSeeder extends Seeder
{
Expand All @@ -19,9 +17,9 @@ public function run()
'password' => bcrypt('123456'),
'status' => 1,
];
if (Schema::hasColumn('users', 'remember_token')) {
if (\Schema::hasColumn('users', 'remember_token')) {
$data['remember_token'] = str_random(10);
}
DB::table('users')->insertOrIgnore($data);
\DB::table('users')->insertOrIgnore($data);
}
}

0 comments on commit 6c0cf20

Please sign in to comment.