Skip to content

Move include of global functions to AppServiceProvider#1635

Merged
josephsnyder merged 1 commit into
Kitware:masterfrom
williamjallen:include-location-bugfix
Aug 9, 2023
Merged

Move include of global functions to AppServiceProvider#1635
josephsnyder merged 1 commit into
Kitware:masterfrom
williamjallen:include-location-bugfix

Conversation

@williamjallen
Copy link
Copy Markdown
Collaborator

#1621 reduced the number of repetitive require_once commands, but made the faulty assumption that the global functions being included were not necessary in any of the middleware. A more appropriate spot for these includes is Laravel's AppServiceProvider, which runs before the middleware does, and is generally the place to change global settings.

Fixes #1630.

Copy link
Copy Markdown
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

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

A quick change with a big effect. That solves the problem I was noticing! Thanks @williamjallen

@josephsnyder josephsnyder added this pull request to the merge queue Aug 9, 2023
Merged via the queue into Kitware:master with commit 7c75165 Aug 9, 2023
@williamjallen williamjallen deleted the include-location-bugfix branch August 9, 2023 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

500 error on page redirect when querying user

2 participants