Unserialize Laravel Cache

4 years ago

jasonvarga

Copy/paste the contents of a Laravel cache file onto line 3 and it will convert it to a more readable version.

Code

unserialize(substr(trim('

9999999999a:1:{i:0;s:4:"test";}

'), 10))

Output

=> [
     "test",
   ]
New course: Desktop apps with Electron