---
title: "Guest & anonymous reports — Reports for Laravel | Roundly"
description: "Accept reports from visitors who aren’t signed in, deduplicated by a hashed IP or email identifier."
url: https://roundly-consulting.com/open-source/docs/reports-for-laravel/guest-reports
language: en
---

[All packages](https://roundly-consulting.com/open-source.md)

[Reports for Laravel](https://roundly-consulting.com/open-source/docs/reports-for-laravel.md)

# Guest & anonymous reports

The reporter column is nullable, so visitors who aren’t signed in can report too. Pass a guest identifier — a hash of the IP address or email — to keep duplicate prevention working:

```php
Reports::report($post)
    ->asGuest(hash('sha256', $request->ip()))
    ->for('spam')
    ->because('Obvious spam.')
    ->create();
```

The identifier is stored in guest\_identifier and the reporter stays null. With prevent\_duplicates on, the same identifier cannot report the same subject twice. The package stores exactly what you pass, so hash it first rather than storing a raw IP or email.

## Fully anonymous reports

```php
// No reporter and no guest identifier: stored, but never deduplicated.
Reports::report($post)->for(Reason::Spam)->create();
```

Guest and anonymous reports count towards reportsCount(), the aggregation scopes and the threshold like any other. isReportedBy() matches reporter models only.

## Show your open-source love

This package is free and MIT-licensed. If it saves you time, a one-off donation or a Patreon membership keeps it maintained, tested and documented.

[More ways to support, including crypto](https://roundly-consulting.com/support-us.md)

By donating, you agree to our [donation terms](https://roundly-consulting.com/donation-terms.md).

[Support our open source work (opens in a new tab)](https://donate.stripe.com/dRmeVe8FX5PF1Qd9pXcEw00) [Join us on Patreon (opens in a new tab)](https://www.patreon.com/cw/roundly)

## Want this built into your product?

We integrate our packages into custom Laravel and AI builds. Tell us what you're working on and we'll reply within 48 hours.

[Get a quote in 48 hours](https://roundly-consulting.com/contact.md) [Browse all packages](https://roundly-consulting.com/open-source/docs/reports-for-laravel.md)
