How can I encrypte and decrypte of class object, store it into database. Actually I want to secure my database that if anyone stole it then not able to read it.
Employee Controller
$employee = new Employee();
$employee->name = $request->get('name');
$employee->code = $request->get('code');
$employee->email = $request->get('email');
$employee->cell = $request->get('cell');
$employee->password = $request->get('password');
Here I want to encrypte the $employee object and store it into database and also want to decrypte it to view it again. Please guide me
via Muhammad Amir