add class progress and fix endpoints
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user