| Package Data | |
|---|---|
| Maintainer Username: | jiaojie1989 |
| Maintainer Contact: | thomasjiao@vip.qq.com (JIAO Jie) |
| Package Create Date: | 2016-09-13 |
| Package Last Update: | 2016-09-23 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-29 03:02:06 |
| Package Statistics | |
|---|---|
| Total Downloads: | 24 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
Install
Simply run composer install "jiaojie/laravel5-jsonp-response".
Add the following middleare to your app\Http\Kernel.php
protected $middleware = [
"Jiaojie\Laravel\Middlewares\Jsonp\JsonpResponse",
];
__jsonp=true&callback=sthCallback, the api automaticly changes into jsonp format./**/myCallback(["date","2016-09-13 19:15:07"]);
callback is set to a number, then the javascript callback function is forced to be named callback.