Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-laravel

Zingle315MIT0.9.6

Laravel interop library

readme

node-laravel

Node.js library for inter-operating with Laravel.

API

decrypt(key, iv, cipher) => string

Decrypt cipher text using the Laravel application encryption key and provided initialization vector.

deserialize(string) => string

Deserialize data serialized by PHP.

encrypt(key, iv, plain) => string

Encrypt plain text using the Laravel application encryption key and provided initialization vector.

Extract the encrypted and encoded session id from a Laravel session cookie value.

readCookies(key, [cookieName], cookies) => string

Extract the encrypted and encoded session id from Laravel session cookie.