okay, first of all by default Laravel uses AES-256-CBC
and to determine if the data encrypted or not. It's depend on the string you are planing to encrypt, lets say if the string random ( no spaces, no english words ) means it's not possible to know, other wise you might think to use like space separator or try to find some words or use some helper functions like this
When the code crashes, what exception message is printed?
Its a question of catching exactly the right error. I know you have that use in there but I never seem to get it right, and actually often what is needed seems to be like