app/Http/Controllers/Controller.php
/**
	 * Generate random number for verification code
	 * 
	 */
Generate random number for verification code
Generate random number for verification code
public function genrateRandomInt($x = 5)
	{
		$min   = pow(10, $x);
		$max   = pow(10, $x + 1) - 1;
		$value = rand($min, $max);
		return $value;
	}
public function genrateRandomInt ( $ x = 5 ) { $ min = pow ( 10 , $ x ) ; $ max = pow ( 10 , $ x + 1 ) - 1 ; $ value = rand ( $ min , $ max ) ; return $ value ; }
Generate random number for verification code
Generate random number for verification code