Laravel 5 Storage :: delete()错误

时间:2016-03-22 10:30:34

标签: laravel laravel-5 laravel-5.2

我正在尝试使用以下代码删除存储在app_folder / storage / app / images / business / filename_here.png中的文件:

Storage::delete(storage_path('app/images/business/'.$business->logo));

我得到的错误如下:

FileNotFoundException in Filesystem.php line 381:
File not found at path: home/vagrant/Code/app_folder/storage/app/images/business/1_logo.png

问题是显示的路径绝对正确,文件名也是。有什么想法吗?

0 个答案:

没有答案