jeevamugunthan
3 months ago
385
4
Laravel

how to delete file in local

Posted 3 months ago by jeevamugunthan

hello everyone i need to delete particular image file my code is

	$path=URL::to($request['pathad']);
       
        File::delete($path);

in this $path result is

$path=http://localhost/atc/public/images/workerprofile/Crystalsproof_ofpraveen.png

its not working

Please sign in or create an account to participate in this conversation.