Answers for "new image in laravel"

PHP
0

laravel blade image

<img src="{{URL::asset('/image/propic.png')}}" alt="profile Pic" height="200" width="200">
Posted by: Guest on January-15-2022
1

how to store an image in laravel directly from url

use Storage;
$url = "http://www.google.co.in/intl/en_com/images/srpr/logo1w.png";
$contents = file_get_contents($url);
$name = substr($url, strrpos($url, '/') + 1);
Storage::put($name, $contents);
Posted by: Guest on June-19-2021

Browse Popular Code Answers by Language