We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ab42eb commit 9ca1ee5Copy full SHA for 9ca1ee5
src/Factories/PackageFactory.php
@@ -0,0 +1,30 @@
1
+<?php
2
+
3
+namespace Creasi\Laravel\Factories;
4
5
+use Creasi\Laravel\Files\File;
6
+use Illuminate\Database\Eloquent\Factories\Factory;
7
8
+class PackageFactory extends Factory
9
+{
10
+ protected $model = File::class;
11
12
+ public function definition()
13
+ {
14
+ $now = now();
15
16
+ return [
17
+ 'id' => $this->faker->uuid(),
18
+ 'name' => $this->faker->unique()->safeEmail(),
19
+ 'size' => now(),
20
+ 'url' => now(),
21
+ 'path' => now(),
22
+ 'mime' => now(),
23
+ 'type' => now(),
24
+ 'meta' => now(),
25
+ 'disk' => now(),
26
+ 'created_at' => $now,
27
+ 'updated_at' => $now,
28
+ ];
29
+ }
30
+}
0 commit comments