0025-laravel-constants-and-configuration

Community

Replace magic values with maintainable config

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Hardcoded magic numbers, strings, and repeated logic make Laravel applications harder to understand, refactor, and debug as features grow.

Core Features & Use Cases

  • Replace hardcoded roles, statuses, and rules with constants/enums to make intent explicit and reduce typos or invalid transitions.
  • Centralize environment- and feature-specific settings in configuration files to keep behavior consistent across the codebase.
  • Support database-driven settings with caching so operational changes (like maintenance mode or limits) can be applied without redeploying.

Quick Start

Use this skill to refactor a feature by identifying every hardcoded value (roles, statuses, cache TTLs, timeouts, and thresholds), then moving those values into PHP enums/constants and config entries and updating the code to reference them instead of literals.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 0025-laravel-constants-and-configuration
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0025-laravel-constants-and-configuration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.