diff --git a/stubs/middleware.stub b/stubs/middleware.stub index 2a20d50..fd8ed99 100644 --- a/stubs/middleware.stub +++ b/stubs/middleware.stub @@ -6,10 +6,11 @@ namespace {{ namespace }}; use Closure; use Illuminate\Http\Request; +use Symfony\Component\HttpFoundation\Response; class {{ class }} { - public function handle(Request $request, Closure $next) + public function handle(Request $request, Closure $next): Response { return $next($request); }