Answers for "laravel upload to public folder storage"

PHP
1

laravel upload image to public folder

<?php

if($request->hasFile('image')){
    $image = $request->file('image');
    $image_name = $image->getClientOriginalName();
    $image->move(public_path('/images'),$image_name);

    $image_path = "/images/" . $image_name;
}

?>
Posted by: Guest on September-05-2021
0

laravel get file in public folder

Storage::get('\public\FileNameHere')
Posted by: Guest on January-07-2021

Code answers related to "laravel upload to public folder storage"

Browse Popular Code Answers by Language