First Commit

This commit is contained in:
marco
2026-09-01 09:22:30 -03:00
commit a43ae23eb4
407 changed files with 36138 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class TutorialQuestion extends Model
{
protected $fillable = [
'question',
'options',
'correct_answer',
'explanation',
'order',
];
protected function casts(): array
{
return [
'options' => 'array',
'order' => 'integer',
];
}
public function lesson(): BelongsTo
{
return $this->belongsTo(TutorialLesson::class);
}
}