add class progress and fix endpoints

This commit is contained in:
root
2026-03-12 17:27:49 -04:00
parent 0f39dbee62
commit 33be0c9a0d
40 changed files with 2086 additions and 438 deletions
@@ -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(),
];
}
}