GrafiteInc/Crypto

View on GitHub
src/Encryption/LaravelCrypto.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Grafite\Crypto\Encryption;

class LaravelCrypto extends CryptoEncrypter
{
    /**
     * Construct the Laravel version of the LaracogsEncrypter
     * using the app key and the session ID.
     */
    public function __construct()
    {
        $app_key = config('app.key') ?: 'unsafe';
        $auth_key = auth()->id() ?: 0;

        parent::__construct($app_key, $auth_key);
    }
}