craftcms/laravel-aliases
Provides Craft CMS–style alias support for Laravel. Define and resolve @aliases (e.g. @web, @root) in config and use them to build paths/URLs consistently across environments, keeping code cleaner and avoiding hard‑coded directory strings.
config('aliases.app.logos') resolving to /storage/app/public/logos). Reduces hardcoded paths in codebases, improving maintainability.config/aliases.php files or monolithic path resolvers). Low-risk adoption with MIT license and minimal dependencies.storage/tenant-{id}/uploads).vendor.plugin-name::assets).lang/en/assets).define() calls or global constants).public_path() suffices).spatie/laravel-config-array or custom caching layers).For Executives:
"This package lets us eliminate hardcoded paths in our Laravel app, reducing tech debt and making it easier to add plugins or scale features. For example, instead of scattering /storage/app/uploads across 50+ files, we’d use config('aliases.app.uploads')—cutting refactoring time by 30% and future-proofing for multi-tenant or modular designs. It’s a low-risk, high-reward tool to clean up our architecture with minimal dev effort."
For Engineering: *"craftcms/laravel-aliases wraps Yii’s robust alias system to give us Laravel-native path resolution with zero boilerplate. Key benefits:
config/aliases.php or runtime (e.g., Alias::set('app.logos', $tenant->logo_path)).plugin.acme::assets) without conflicts.config:cache for zero runtime overhead."*How can I help you explore Laravel packages today?