first commit

This commit is contained in:
2026-05-22 20:46:29 +08:00
commit b04f87f2b0
121 changed files with 14851 additions and 0 deletions

26
app/Models/Answer.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Answer extends Model
{
protected $fillable = [
'response_id',
'question_id',
'option_id',
'answer_text',
];
public function response()
{
return $this->belongsTo(Response::class);
}
public function question()
{
return $this->belongsTo(Question::class);
}
}