I'm triying to save an image using laravel intervention
If I use this method it works fine
$route = 'img/' . $domain . '.png';
$img->save(public_path($route));
But I want to save this in a new folder with the domain name $domain
I tried to use this
$route = 'img/' . $domain . '/' . 'favicon.png';
$img->save(public_path($route));
But I get this error
Can't write image data to path (D:\Programas\laragon\www\google-places-ranking\public\img/testfaviconnew/favicon.png)
How can I solve it?
$route = 'img' . DIRECTORY_SEPARATOR . $domain . DIRECTORY_SEPARATOR . 'favicon.png';- Donkarnash