Add notification preferences and admin governance

This commit is contained in:
Codex
2026-07-10 18:33:39 -05:00
parent eb9456e1bd
commit de9e473d3b
28 changed files with 734 additions and 20 deletions
@@ -9,6 +9,7 @@ use App\Models\ProviderProfile;
use App\Models\SocialPost;
use App\Models\WorkOrder;
use App\Models\Attachment;
use App\Models\AuditLog;
use App\Models\BuyerProfile;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
@@ -69,6 +70,10 @@ class AttachmentController extends Controller
) {
$disk = $attachment->disk;
$path = $attachment->path;
AuditLog::record($request, 'attachment.deleted', $attachment, [
'path' => $path,
'disk' => $disk,
]);
$attachment->delete();
$stillReferenced = Attachment::where('disk', $disk)->where('path', $path)->exists();