Replace deprecated array and string helpers

Laravel recommends using the `Str` and `Arr` class methods directly instead of the respective helper functions. These helper functions are deprecated in Laravel 5.8 and removed in Laravel 6.
This commit is contained in:
Shift
2023-03-30 14:15:07 +00:00
parent 810b3cd373
commit b8593e22e0
+3 -1
View File
@@ -2,6 +2,8 @@
namespace Database\Factories;
use Illuminate\Support\Str;
/*
|--------------------------------------------------------------------------
| Model Factories
@@ -21,6 +23,6 @@ $factory->define(App\User::class, function (Faker\Generator $faker) {
'name' => $faker->name,
'email' => $faker->unique()->safeEmail,
'password' => $password ?: $password = bcrypt('secret'),
'remember_token' => str_random(10),
'remember_token' => Str::random(10),
];
});