Laravel, on the other side, provides out-of-the-box encryption, which uses OpenSSL to provide AES-256 encryption so that you don't really have to come up with your own encryption techniques.

In this tutorial, you will learn how to use Laravel encryption to encrypt text!

laravel encrypt and decrypt