const middleware = store => next => action => {
// before-action logic is above
next(action);
// after-action logic is below
};
public function handle($request, Closure $next)
{
// before-action logic is above
$result = $next($request);
// after-action logic is below
}