cyberfly
3/13/2018 - 3:40 AM

Laravel generate random key

taken from php artisan key:generate

    protected function generateRandomKey()
    {
        return base64_encode(
            Encrypter::generateKey(config('app.cipher'))
        );
    }