mirror of
https://github.com/robonen/education-project.git
synced 2026-03-20 02:44:31 +00:00
Модуль Задания
This commit is contained in:
@@ -79,7 +79,6 @@ class BankTaskFileController extends Controller
|
||||
}
|
||||
|
||||
public function delete(BankTaskFile $file) {
|
||||
echo $file;
|
||||
if (Storage::disk('local')->exists('/public/banktask/' . $file->banktask_id . '/' . $file->type . '/' . $file->name )) {
|
||||
if (Storage::disk('local')->delete('/public/banktask/' . $file->banktask_id . '/' . $file->type . '/' . $file->name)) {
|
||||
return response()->json($file->delete());
|
||||
|
||||
Reference in New Issue
Block a user