mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
35 lines
795 B
PHP
35 lines
795 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Domain\Sharing\Models\Share;
|
|
use Domain\Traffic\Models\Traffic;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
class TrafficFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $model = Traffic::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition()
|
|
{
|
|
return [
|
|
'id' => $this->faker->uuid,
|
|
'user_id' => $this->faker->uuid,
|
|
'upload' => rand(11111111, 99999999),
|
|
'download' => rand(11111111, 99999999),
|
|
'created_at' => $this->faker->dateTimeBetween('-month'),
|
|
];
|
|
}
|
|
}
|