organization_id === $organization->id, 404); abort_unless($document->isUpload() && $document->file_path, 404); if ($request->boolean('inline')) { return Storage::response($document->file_path, $document->name); } return Storage::download($document->file_path, $document->name); } }