Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $url = $request->get('thumbnail');
- $url = str_replace('https', "http", $url);
- $filename = time() . '.jpg';
- $path = public_path("images/" . $filename);
- $image = Image::make($url);
- $image->resize(300, 160);
- $image = $image->save($path);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement