'ERROR: Function name must be astring - return $next($request);

I´m getting the error Function name must be a string and it points to the statement return $next($request);.

I just updated my Laravel version to 5.8 and backpack to 3.6, IDK if this has something to be with the error.

Attached is an image of the error.

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source