diff --git a/src/config/nopostdata.php b/src/config/nopostdata.php index a387946..ab9edb0 100644 --- a/src/config/nopostdata.php +++ b/src/config/nopostdata.php @@ -6,7 +6,7 @@ 'errorMessage' => 'An error occurred processing your request. You may be uploading a file which is too large.', // If you wish to change the default behavior of redirecting back with an error, you can do so by changing the closure below. - 'closure' => function(Request $request, Closure $next) { + 'closure' => function(\Illuminate\Http\Request $request, \Closure $next) { return redirect()->back()->withInput()->withErrors(['no_post_data' => config('nopostdata.errorMessage')]); }