Skip to content

Send plugin requests as JSON#95

Open
mikejw wants to merge 1 commit into
laracasts:masterfrom
mikejw:fix-json-plugin-requests
Open

Send plugin requests as JSON#95
mikejw wants to merge 1 commit into
laracasts:masterfrom
mikejw:fix-json-plugin-requests

Conversation

@mikejw

@mikejw mikejw commented Jun 17, 2026

Copy link
Copy Markdown

This ensures plugin requests to Laravel are sent with JSON headers:

  • Content-Type: application/json
  • Accept: application/json

This makes the package’s internal requests explicitly ask Laravel for JSON responses. In my app, this resolved misleading 500 responses from the package endpoints.

I hit this while debugging with Valet. Adding these headers fixed the plugin request behavior in my app.

Happy to adjust if maintainers prefer this as documentation instead of a code change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant