Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: trigger event before sending response #294

Closed
wants to merge 3 commits into from

Conversation

jaulz
Copy link

@jaulz jaulz commented Aug 19, 2021

This PR will trigger an event before the actual Inertia response it sent. The name of the event is up to discussion and maybe you have a better idea. Having this event it will be easy to implement a widget for the Debugbar to inspect the props.

src/Response.php Outdated
@@ -100,6 +101,10 @@ public function toResponse($request)
'version' => $this->version,
];

if (env('APP_DEBUG', false)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config('app.debug')

dont use env outside of config files

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good hint, thanks!

@MinePlay96
Copy link

I would be happy about it too

@driesvints driesvints deleted the branch inertiajs:master May 15, 2024 15:01
@driesvints driesvints closed this May 15, 2024
@driesvints
Copy link
Collaborator

Heya. We removed our master branch. Feel free to re-attempt this to 1.x!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed 🚪
Development

Successfully merging this pull request may close these issues.

None yet

4 participants