PHPackages                             nop-app/filament - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. nop-app/filament

ActiveLibrary[Admin Panels](/categories/admin)

nop-app/filament
================

Nop integration for Filament admin dashboard

v2.0.0(4y ago)1399MITPHP ^8.0

Since Aug 8Compare

[ Source](https://github.com/nop-app/filament)[ Packagist](https://packagist.org/packages/nop-app/filament)[ Docs](https://github.com/nop-app/filament)[ RSS](/packages/nop-app-filament/feed)WikiDiscussions Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Nop for Filament
================

[](#nop-for-filament)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5b0097b945f9f190cfa4647f424c56f5e2cc47e93e306bdee728d0c4beebd03d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f702d6170702f66696c616d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nop-app/filament)[![Total Downloads](https://camo.githubusercontent.com/ec695e32875dfaa750b2f5785438cea387baf884d775047c9e98517976769fce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f702d6170702f66696c616d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nop-app/filament)

Integrate Nop with [Filament](https://filamentadmin.com). The package will enable Nop on all the edit pages of your Filament admin dashboard, e.g. `/admin/projects//edit`, preventing multiple users to access the same page simultaneously.

Installation
------------

[](#installation)

Install the package via composer:

```
composer require nop-app/filament
```

Then publish the package config file:

```
php artisan vendor:publish --tag=nop-config
```

Configuration
-------------

[](#configuration)

There are a few notable configuration options for the package.

KeyTypeDescription`token`StringYour Nop token. If you don't have a project yet, create one for free at .`enabled_routes`ArrayList of routes (RegExp) where Nop should be enabled. By default it will be enabled in every "resource" edit page.`user_name_field`String|NullThe field corresponding to current authenticated user "name".`settings`ArrayAdditional Nop settings. You can take a look to the [official Docs](https://docs.nop.is/usage/settings.html) to find out more.### Advanced user name

[](#advanced-user-name)

If you need advanced logic for the user "name" field, you can set `user_name_field` to `null` in your `config/nop.php` file and then, although it's not defined in the values, set the `nop.name` config.
For example in a middleware you can do:

```
// app/Http/Middleware/NopUser.php
