Files
vuefilemanager/database/factories/ZipFactory.php
Peter Papp 617ba2a6a8 - added it_delete_zips_older_than_one_day test
- refactored scheduler tasks into SchedulerService.php
2021-03-02 17:05:57 +01:00

33 lines
663 B
PHP

<?php
namespace Database\Factories;
use App\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,
];
}
}