Skip to main content

Recently

v3.2.0
43
61,597

Easily track and access recently viewed records in your filament panels.

  • filament
  • filament-plugin
Recently thumbnail

Package health

Automated checks of this package

98 / 100
Security 96
Maintenance 100
Ecosystem 100
Powered by Plumb Last scanned 14 hours ago

Compatibility

Version Filament PHP Laravel Latest Docs
3.x (Current) ^4.0|^5.0 ^8.2 ^11.28|^12.0|^13.0 * v3.2.0 3.x docs
2.x ^5.0 ^8.2 ^11.28|^12.0|^13.0 * v2.0.2 —
1.x ^3.0 ^8.1 ^10.45|^11.0|^12.0|^13.0 * v1.0.6 —

* Taken from the Filament versions this release supports, using the newest release of each.

Recently records the resource pages each user opens in a Filament panel and gives them a quick way back. It adds a dropdown to the topbar listing what that user viewed or edited most recently, and it can surface the same history through global search.

Tracking is opt-in per page: you add a trait to the EditRecord and ViewRecord pages you want recorded, so only the resources you choose end up in a user's history.

The Recently menu open in the topbar, listing six recently edited pages, newest first, above a Clear History action The Recently menu open in the topbar, listing six recently edited pages, newest first, above a Clear History action

How it works

Each time a tracked page is rendered, Recently stores the page's URL, the resource's navigation icon and the record's title against the current user. Entries are keyed on the user and the URL, so revisiting a record moves it back to the top of the list rather than creating a duplicate.

History is per user throughout — a global scope on the model constrains every query to the authenticated user, so one user never sees another's records.

Where to go next

  • Installation — install the package, run the installer, register the styles.
  • Usage — register the plugin and choose which pages are tracked.
  • Configuration — the config file, global search and the menu.
  • Appearance — icon, label, width and where the menu renders.