Skip to content

Commit

Permalink
fix str_random error in database seeder
Browse files Browse the repository at this point in the history
  • Loading branch information
darryldecode committed Oct 29, 2019
1 parent c63b695 commit 1602979
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database/seeds/UserSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use App\Components\User\Models\Permission;
use App\Components\User\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Str;

class UserSeeder extends Seeder
{
Expand Down Expand Up @@ -63,7 +64,7 @@ public function run()
'name' => 'John Doe',
'email' => '[email protected]',
'password' => '12345678',
'remember_token' => str_random(10),
'remember_token' => Str::random(10),
'permissions' => [],
'last_login' => \Carbon\Carbon::now(),
'active' => \Carbon\Carbon::now(),
Expand Down

0 comments on commit 1602979

Please sign in to comment.