You can checkout the complete tutorial on Scotch: Laravel Random Keys with Keygen.
This project contains a demo code showing how to use the PHP Keygen package in a Laravel application. It is required that Laravel and the Keygen package be installed before cloning the repository and trying out the demo.
It is also required that you install the missing dependencies using Composer before you continue. Make sure you have the correct configuration in your .env
file.
composer install