PHP Package: fruitcake/laravel-cors

The Laravel CORS package by fruitcake helps in managing Cross-Origin Resource Sharing for Laravel applications efficiently.

Current Version: 3.0.0
Last Updated: 2022-02-23
PHP Requirement: ^7.4|^8.0
Dependencies:
laravel/framework
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laravel CORS by fruitcake is a powerful tool for configuring Cross-Origin Resource Sharing headers in Laravel projects. It simplifies the process of handling CORS requests and allows for secure and controlled cross-origin data access.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.0.0

Download Download v3.0.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/fruitcake/laravel-cors/3.0.0/loader.php';
require_once 'libs/laravel/framework/{lib_version}/loader.php';

use Fruitcake\Cors\Middleware\Cors;

$obj = new Cors();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.