src/Encryption/LaravelCrypto.php
<?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);
}
}