Question : delete file from public folder in laravel
Answered by : muhammad-ishaq
//Use File On top
use Illuminate\Support\Facades\File;
//then use the delete function
File::delete('abc/muhammad.jpg');
//location of file to delete is "public/abc/muhammad.jpg"
Source : | Last Update : Wed, 21 Sep 22