Answers for "laravel delete image from public folder"

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

unlink is a directory laravel

$destinationPath = 'your_path';
 File::delete($destinationPath.'/your_file');
Posted by: Guest on May-07-2020

Code answers related to "laravel delete image from public folder"

Browse Popular Code Answers by Language