mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-01 22:39:13 +08:00
Updated to laravel 6
This commit is contained in:
@ -15,8 +15,8 @@ $factory->define(\BookStack\Auth\User::class, function ($faker) {
|
||||
return [
|
||||
'name' => $faker->name,
|
||||
'email' => $faker->email,
|
||||
'password' => str_random(10),
|
||||
'remember_token' => str_random(10),
|
||||
'password' => Str::random(10),
|
||||
'remember_token' => Str::random(10),
|
||||
'email_confirmed' => 1
|
||||
];
|
||||
});
|
||||
@ -24,7 +24,7 @@ $factory->define(\BookStack\Auth\User::class, function ($faker) {
|
||||
$factory->define(\BookStack\Entities\Bookshelf::class, function ($faker) {
|
||||
return [
|
||||
'name' => $faker->sentence,
|
||||
'slug' => str_random(10),
|
||||
'slug' => Str::random(10),
|
||||
'description' => $faker->paragraph
|
||||
];
|
||||
});
|
||||
@ -32,7 +32,7 @@ $factory->define(\BookStack\Entities\Bookshelf::class, function ($faker) {
|
||||
$factory->define(\BookStack\Entities\Book::class, function ($faker) {
|
||||
return [
|
||||
'name' => $faker->sentence,
|
||||
'slug' => str_random(10),
|
||||
'slug' => Str::random(10),
|
||||
'description' => $faker->paragraph
|
||||
];
|
||||
});
|
||||
@ -40,7 +40,7 @@ $factory->define(\BookStack\Entities\Book::class, function ($faker) {
|
||||
$factory->define(\BookStack\Entities\Chapter::class, function ($faker) {
|
||||
return [
|
||||
'name' => $faker->sentence,
|
||||
'slug' => str_random(10),
|
||||
'slug' => Str::random(10),
|
||||
'description' => $faker->paragraph
|
||||
];
|
||||
});
|
||||
@ -49,7 +49,7 @@ $factory->define(\BookStack\Entities\Page::class, function ($faker) {
|
||||
$html = '<p>' . implode('</p>', $faker->paragraphs(5)) . '</p>';
|
||||
return [
|
||||
'name' => $faker->sentence,
|
||||
'slug' => str_random(10),
|
||||
'slug' => Str::random(10),
|
||||
'html' => $html,
|
||||
'text' => strip_tags($html),
|
||||
'revision_count' => 1
|
||||
|
Reference in New Issue
Block a user