mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
33 lines
674 B
PHP
33 lines
674 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Domain\Zipping\Models\Zip;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
class ZipFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = Zip::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'id' => $this->faker->uuid,
|
|
'user_id' => $this->faker->uuid,
|
|
'shared_token' => Str::random(16),
|
|
'basename' => $this->faker->word,
|
|
];
|
|
}
|
|
}
|