stays

Guide exploration of stays backend flows through Laravel tests and factories.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/taucao-ruby/soleil-hostel --skill stays
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stays
Source: https://github.com/taucao-ruby/soleil-hostel/tree/main/.claude/skills/generated/stays
Command: npx skills add https://github.com/taucao-ruby/soleil-hostel --skill stays

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Understand and modify the stays-related backend in Soleil Hostel, including how room assignments, stay lifecycles, and service recovery flows are implemented and tested.

Core Features & Use Cases

  • Guides exploration of the stays domain in the backend (RoomAssignment, Stay, ServiceRecoveryCase) through tests like backend/tests/Feature/Stays/RoomAssignmentTest.php and ServiceRecoveryCaseTest.php.
  • Highlights key factories and data setup (RoomFactory, StayFactory, BookingFactory) used to simulate real-world stays scenarios.
  • Supports safe modification by aligning with Laravel 12, PHP 8.2+, and a test-driven workflow with Feature and Unit tests.

Quick Start

Inspect backend/tests/Feature/Stays and backend/database/factories to understand core concepts and typical test data flows.

Frequently Asked Questions about stays

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I understand the Stays domain model in a Laravel backend codebase?

To understand the Stays domain model in a Laravel backend, inspect the Feature tests under backend/tests/Feature/Stays. These tests map out RoomAssignment, Stay, and ServiceRecoveryCase flows for safe debugging and refactoring.

What is the best way to set up test data for room assignment scenarios in Laravel?

The best way to set up test data for room assignment scenarios in Laravel is using RoomFactory, StayFactory, and BookingFactory. These factories simulate real-world Stays domain data for your Feature and Unit tests.

Does this Laravel test-driven workflow support PHP 8.2 and Laravel 12?

Yes, this Laravel test-driven workflow supports PHP 8.2 and Laravel 12. It aligns with these versions to guide safe modifications to the Stays domain using Feature and Unit tests.

How do I test a service recovery case flow in a Laravel backend?

To test a service recovery case flow in a Laravel backend, examine ServiceRecoveryCaseTest.php. This test demonstrates the lifecycle and logic needed to trigger and validate service recovery scenarios within the Stays domain.

Why use test-driven development for refactoring a PHP backend domain model?

Use test-driven development for refactoring a PHP backend domain model to ensure safe changes. Feature and Unit tests verify existing logic in the Stays domain, preventing regressions during feature work or debugging.