julesgraus / cross-origin-helpers
Enables some methods like the dd method from Laravel to work cross origin. just add a c before the function call.
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/julesgraus/cross-origin-helpers
Requires
- laravel/framework: >=7.24 <10.0
This package is auto-updated.
Last update: 2025-10-11 03:07:08 UTC
README
Enables some methods like the dd method from Laravel to work cross origin. just add a c before the function call. Compatible with laravel 7.24 and up.
Installation
With Composer
$ composer require julesgraus/cross-origin-helpers
{ "require": { "julesgraus/cross-origin-helpers": "^0.1" } }
<?php require 'vendor/autoload.php'; cdd('Cross origin die and dump test'); cdie('Cross origin die test'); cdump('Cross origin dump test');
Configuration
The helpers provided by this package use the same cors config file as Laravel 7, 8 and 9 provide by default.
Use Laravels cors config file config/cors
to setup cors and the helpers should work too.
Also see The laravel manual for more info.