I am using the IMAGINE package in laravel , I have the below line in laravel:
$path = public_path('img\testsave\/' .$filename);
now I'm getting the following error:
C:\xampp\htdocs\lookinggood\public/img\testsave/2015-10-07-11-40-19-edit-one.jpgjpg does not exist.
The backslash after public
needs to be changed to a forward
slash. After testsave
I am getting the \/
.
I have tried to escape the forward slash like so:
$path = public_path('img\testsave\/' .$filename);
So how do I change the backslash after public to a forwardslash and how do I successfully escape the forward slash after testsave
?