How to get the filename, when taking image from a remote server? And how to save with original size and filename?
// Take remote image $img = Image::make(\'ht
response() does not return the original filename like Salines was requesting. This should work
$path = 'https://i.stack.imgur.com/koFpQ.png'; $filename = basename($path); Image::make($path)->save(public_path('images/' . $filename));