Skip to content

Commit 9ca1ee5

Browse files
committed
chore: add dummy factory file
Signed-off-by: Fery Wardiyanto <ferywardiyanto@gmail.com>
1 parent 0ab42eb commit 9ca1ee5

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/Factories/PackageFactory.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)