Browse Source

Merge pull request #4926 from kawax/str

Use Str::random() instead of str_random()
Dries Vints 6 years ago
parent
commit
6efb843e7d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      database/factories/UserFactory.php

+ 2 - 1
database/factories/UserFactory.php

@@ -1,5 +1,6 @@
 <?php
 
+use Illuminate\Support\Str;
 use Faker\Generator as Faker;
 
 /*
@@ -19,6 +20,6 @@ $factory->define(App\User::class, function (Faker $faker) {
         'email' => $faker->unique()->safeEmail,
         'email_verified_at' => now(),
         'password' => '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', // secret
-        'remember_token' => str_random(10),
+        'remember_token' => Str::random(10),
     ];
 });