Filament: Right-Click Menu in Table

Filament 4/5

This project demonstrates how to add a native-feeling right-click context menu to a Filament table using the leek/filament-right-click plugin. Right-click any row in the orders table and a desktop-style menu appears — grouped sections, icons, colors, and separators — wiring straight into ordinary Filament Action and BulkAction objects.

filamentexamples-right-click-menu-1

Get the Source Code:

Only This Example

$9

One-time payment

Full source code for Filament: Right-Click Menu in Table
Downloadable ZIP file with the source code
Lifetime access to this example
GitHub Sign in with GitHub to buy

Sign in first, then complete your $9 checkout.

Best value — all 170 examples

FilamentExamples Membership

$99 /year
or
$199 lifetime
Access to code of all 170 examples
Future new examples and updates included
FilaCheck Pro package licence included
MCP server included
View membership plans

30-day money-back guarantee

How it works

Right-Click Context Menu for Filament Tables

This project demonstrates how to add a native-feeling right-click context menu to a Filament table using the leek/filament-right-click plugin. Right-click any row in the orders table and a desktop-style menu appears — grouped sections, icons, colors, and separators — wiring straight into ordinary Filament Action and BulkAction objects. Select several rows first, and right-clicking offers bulk actions across the whole selection instead.

The whole feature is two method calls on the table (->contextMenuActions() and ->contextMenuBulkActions()) plus one line to register the plugin — the actions themselves are the same Filament actions you already know, so nothing new to learn on that front.

The repository contains the complete Laravel + Filament project to demonstrate the functionality, including migrations/seeds for the demo data.

The Filament project is in the app/Filament folder.

Feel free to pick the parts that you actually need in your projects.


How to install

  • Clone the repository with git clone
  • Copy the .env.example file to .env and edit database credentials there
  • Run composer install
  • Run php artisan key:generate
  • Run php artisan migrate --seed (it has some seeded orders for your testing)
  • Run npm install && npm run build
  • That's it: launch the URL /admin and log in with credentials [email protected] and password, then right-click any row in the Orders table

Screenshots


How It Works

The entire feature is three pieces: registering the plugin on the panel, defining a per-row context menu with ->contextMenuActions(), and defining a selection-wide menu with...

The FULL tutorial is available after the purchase: in the Readme file of the official repository you would get invited to.