Initial commit

This commit is contained in:
Zdeněk Burda
2026-01-09 21:26:40 +01:00
parent e83aec6dca
commit 41e3ce6f25
404 changed files with 61250 additions and 28 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace Database\Factories;
use App\Models\File;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Str;
/**
* @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\File>
*/
class FileFactory extends Factory
{
protected $model = File::class;
public function definition(): array
{
$filename = $this->faker->lexify('log-????.edi');
return [
'path' => 'uploads/test/' . $filename,
'filename' => $filename,
'mimetype' => 'text/plain',
'filesize' => 10,
'hash' => Str::random(64),
'uploaded_by' => null,
];
}
}