public function destroy($id) { $form = Form::findOrFail($id); $this->authorize('delete', $form); $path = storage_path($form->path); $form->delete(); if (file_exists($path)) { unlink($path); } return response('Form deleted!', 200); }