刪除文件php
<?php class demo{ public function del(){ $disk = Storage::disk('public');//獲取磁盤實例 $disk->delete(‘1.txt’);//刪除一個 $disk->delete('1.txt','2.txt');//刪除多個 } }