940afe9319
API CI/CD / Validate (composer + pint) (push) Successful in 2m7s
API CI/CD / Test (PHPUnit) (push) Failing after 2m23s
API CI/CD / Build frontend assets (push) Successful in 2m18s
API CI/CD / Security audit (push) Successful in 31s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped
36 lines
1.0 KiB
PHP
36 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\ClassProgressReport;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
class ClassProgressReportFactory extends Factory
|
|
{
|
|
protected $model = ClassProgressReport::class;
|
|
|
|
public function definition(): array
|
|
{
|
|
$weekStart = Carbon::now()->startOfWeek(Carbon::SUNDAY)->startOfDay();
|
|
|
|
return [
|
|
'class_section_id' => 101,
|
|
'teacher_id' => 1,
|
|
'week_start' => $weekStart,
|
|
'week_end' => (clone $weekStart)->addDays(6),
|
|
'subject' => 'Islamic Studies',
|
|
'unit_title' => 'Unit 1 / Chapter A',
|
|
'covered' => 'Lesson overview',
|
|
'homework' => 'Practice reading',
|
|
'next_week_plan' => 'Continue with the next lesson',
|
|
'status' => 'on_track',
|
|
'support_needed' => null,
|
|
'flags_json' => ['flag'],
|
|
'attachment_path' => null,
|
|
'created_at' => now(),
|
|
'updated_at' => now(),
|
|
];
|
|
}
|
|
}
|