24 lines
578 B
PHP
24 lines
578 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\ClassProgressAttachment;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ClassProgressAttachmentFactory extends Factory
|
|
{
|
|
protected $model = ClassProgressAttachment::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'report_id' => 1,
|
|
'file_path' => 'storage/class_material/sample.pdf',
|
|
'original_name' => 'sample.pdf',
|
|
'mime_type' => 'application/pdf',
|
|
'file_size' => 12345,
|
|
'created_at' => now(),
|
|
];
|
|
}
|
|
}
|