kdcwinner/securitycode

It will generate a code which will be numbers with 6 digits and it will not be palindrome,not contain same digits more than 3 times, not contain sequencial number more than 3.

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:Blade

Type:project

dev-main 2023-08-29 01:52 UTC

This package is not auto-updated.

Last update: 2024-05-08 03:11:32 UTC


README

It will generate a code which will be numbers with 6 digits and it will not be palindrume,not contain same digits more than 3 times, not contain sequencial number more than 3. Laravel SecurityCode

Installation

Install the package by the following command,

composer require kdcwinner/securitycode

Add Provider

Add the provider to your config/app.php into provider section.

Kdcwinner\Securitycode\SecuritycodeServiceProvider::class,

fire Migrate command

php artisan migrate

this command will add one column in users table with 'securitycode' name and create on table with 'configration' name.

Fire php artisan serve comand to start your application

then with url with http://127.0.0.1:8000/securitycode/configration Here you can set code length for example. 6 then code will generate with 6 digits, if you set 10 then code will generate with 10 digits.

After configure the code length you have to fire http://127.0.0.1:8000/securitycode/userlist

if you see a no data then insert some data in users table and then again fire this url show you will as button with name 'Assign Access Code' to assign code to that particular user.

License

The MIT License (MIT). Please see License File for more information