Replaced the static call to Request class by  the actual request in $request variable ( Route::getCurrentRequest())