I added (int) to the configuration in the parameters, where we get the numbers through the env function.
This commit is contained in:
		@@ -1,10 +1,10 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
return [
 | 
			
		||||
    'waiting_for_captcha_verification_in_seconds' => env('WAITING_FOR_CAPTCHA_VERIFICATION_IN_SECONDS', 900),
 | 
			
		||||
    'validate_max_count_errors' => env('CAPTCHA_VALIDATE_MAX_COUNT_ERRORS', 3),
 | 
			
		||||
    'max_info_display_count' => env('CAPTCHA_MAX_INFO_DISPLAY_COUNT', 1),
 | 
			
		||||
    'verification_data_view_limit_in_minutes' => env('CAPTCHA_VERIFICATION_DATA_VIEW_LIMIT_IN_MINUTES', 60),
 | 
			
		||||
    'waiting_for_captcha_verification_in_seconds' => (int) env('WAITING_FOR_CAPTCHA_VERIFICATION_IN_SECONDS', 900),
 | 
			
		||||
    'validate_max_count_errors' => (int) env('CAPTCHA_VALIDATE_MAX_COUNT_ERRORS', 3),
 | 
			
		||||
    'max_info_display_count' => (int) env('CAPTCHA_MAX_INFO_DISPLAY_COUNT', 1),
 | 
			
		||||
    'verification_data_view_limit_in_minutes' => (int) env('CAPTCHA_VERIFICATION_DATA_VIEW_LIMIT_IN_MINUTES', 60),
 | 
			
		||||
    'imageClass' => \App\Captcha\Images\Image::class,
 | 
			
		||||
    'types' => [
 | 
			
		||||
        'string' => [
 | 
			
		||||
 
 | 
			
		||||
@@ -3,6 +3,6 @@ return [
 | 
			
		||||
    /**
 | 
			
		||||
     * Max limit of the hour.
 | 
			
		||||
     */
 | 
			
		||||
    'login_max_request' => env('LOGIN_MAX_REQUEST', 50),
 | 
			
		||||
    'login_max_email_request' => env('LOGIN_MAX_EMAIL_REQUEST', 10),
 | 
			
		||||
    'login_max_request' => (int) env('LOGIN_MAX_REQUEST', 50),
 | 
			
		||||
    'login_max_email_request' => (int) env('LOGIN_MAX_EMAIL_REQUEST', 10),
 | 
			
		||||
];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user