mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-13 22:43:39 +08:00
74fce9640e
Some checks are pending
analyse-php / build (push) Waiting to run
lint-php / build (push) Waiting to run
test-migrations / build (8.1) (push) Waiting to run
test-migrations / build (8.2) (push) Waiting to run
test-migrations / build (8.3) (push) Waiting to run
test-php / build (8.1) (push) Waiting to run
test-php / build (8.2) (push) Waiting to run
test-php / build (8.3) (push) Waiting to run
33 lines
754 B
PHP
33 lines
754 B
PHP
<?php
|
|
|
|
namespace Database\Factories\Exports;
|
|
|
|
use BookStack\Users\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
class ImportFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = \BookStack\Exports\Import::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'path' => 'uploads/imports/' . Str::random(10) . '.zip',
|
|
'name' => $this->faker->words(3, true),
|
|
'book_count' => 1,
|
|
'chapter_count' => 5,
|
|
'page_count' => 15,
|
|
'created_at' => User::factory(),
|
|
];
|
|
}
|
|
}
|