Question and answer is powered by AnsPress.io
I want to delete files dynamically in laravel 5 and please anyone can help me it will be very helpful to me. Thanks in advanced.
Delete image from the directory after deleting records from the database or old image delete at the uploading time using Laravel 5, follow this code:
<?php File::delete('assets/upload_images/' . $media_name);