exists($candidate)) { $path = Storage::disk('public')->path($candidate); return response()->file($path, [ 'Content-Type' => mime_content_type($path), 'Cache-Control' => 'max-age=86400, public', ]); } } abort(404, 'Selfie file not found.'); } }