---
title: "Artisan commands — Permissions for Laravel | Roundly"
description: "Flush the permission cache, prune orphaned grant rows, and inspect the package setup with php artisan about."
url: https://roundly-consulting.com/open-source/docs/permissions-for-laravel/commands
language: en
---

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

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

# Artisan commands

Two maintenance commands, plus a section in php artisan about:

```bash
php artisan permissions:cache-reset     # flush the cached permission catalog
php artisan permissions:prune-orphans   # delete grant rows whose holder no longer exists
php artisan about --only=permissions    # show the resolved package setup
```

- permissions:cache-reset — flush the cached permission catalog, exactly like Permissions::cache()->forget(). Run it after bulk writes that bypass model events.
- permissions:prune-orphans — run Permissions::pruneOrphans(): delete model\_roles and model\_permissions rows whose holder no longer exists, and report how many were pruned.
- about --only=permissions — the role and permission models, holder key type, description fallback, whether tables are renamed, the Gate check state and the cache settings. The cache store, cache key and table names show only as DEFAULT, SET or a count — never their values.

## 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/permissions-for-laravel.md)
