code refactoring for recent works related to dropzone
This commit is contained in:
@ -16,7 +16,7 @@ class Dropzone
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (($request->method() != 'POST') && ($request->method() != 'PATCH')) {
|
||||
if (!in_array($request->method(), ['POST', 'PATCH'])) {
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user