Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Cors Laravel Package

tenantcloud/laravel-cors

A Laravel package for handling Cross-Origin Resource Sharing (CORS). It provides middleware and configuration to control allowed origins, methods, headers, and credentials, helping APIs respond safely to browser preflight and cross-origin requests.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Dependency upgrade planning: Decide whether to adopt v3.0.0 (requires Laravel 12 + PHP 8.4) or remain on v2.x for older stacks.
  • Platform modernization roadmap: Aligns with the latest Laravel/PHP versions, which may be a prerequisite for security patches and long-term support.
  • Build vs. buy for CORS: Evaluate whether this package adds value over Laravel’s built-in CORS middleware (config/cors.php + HandleCors), especially since v3.0.0 drops older-version compatibility.
  • Security & compliance: Staying on supported framework versions reduces risk; v3.0.0 enforces a modern baseline.
  • Feature use cases: If your API needs fine-grained CORS policies beyond Laravel’s defaults, this package may offer extra configuration—but confirm against current documentation.

When to Consider This Package

  • Adopt if: You are already on Laravel 12 and PHP 8.4 (or have a committed upgrade timeline), and you need CORS features not covered by Laravel’s built-in middleware, or you rely on tenantcloud-specific patches.
  • Look elsewhere if: You are on older Laravel/PHP versions and cannot upgrade soon (stay on v2.x or use Laravel’s native CORS). Also consider alternatives if the package’s maintenance cadence or feature set does not justify the upgrade overhead—especially since Laravel’s core CORS handling may suffice for standard use cases.
  • Evaluate carefully: Confirm whether this fork provides meaningful advantages over Laravel’s native CORS; if not, dropping the dependency simplifies your stack.

How to Pitch It (Stakeholders)

  • Executives: This package manages cross-origin resource sharing (CORS) for APIs—a security and integration concern. The new v3.0.0 enforces Laravel 12 and PHP 8.4, which forces a stack upgrade. Adopting it signals modernization and security compliance, but requires engineering effort. We should decide if the package’s value justifies the upgrade or if Laravel’s built-in CORS is sufficient.
  • Engineering: v3.0.0 is a breaking change—only Laravel 12 + PHP 8.4 supported. Plan the upgrade if you need this package’s specific features; otherwise, stay on v2.x or migrate to Laravel’s native CORS. Assess effort and risk against roadmap priorities.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast