$questions */ class CustomSubject extends Model { /** @var array */ protected $fillable = [ 'user_id', 'name', 'pdf_path', 'extracted_content', 'processing_status', 'error_message', 'is_active', ]; /** @var array */ protected $casts = [ 'is_active' => 'boolean', ]; /** * Get the user who owns the custom subject. */ public function user(): BelongsTo { return $this->belongsTo(User::class); } /** * Get the questions for this custom subject. */ public function questions(): HasMany { return $this->hasMany(CustomSubjectQuestion::class); } }