PHPackages                             discoverydesign/filament-gaze - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. discoverydesign/filament-gaze

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

discoverydesign/filament-gaze
=============================

See who's viewing a resource in Filament PHP.

2.1.4(2mo ago)174101.1k↓24.7%18[3 issues](https://github.com/discoverydesign/filament-gaze/issues)MITPHP

Since Jul 21Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/discoverydesign/filament-gaze)[ Packagist](https://packagist.org/packages/discoverydesign/filament-gaze)[ RSS](/packages/discoverydesign-filament-gaze/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (37)Used By (0)

Filament Gaze
=============

[](#filament-gaze)

👀 See who's viewing a resource in Filament PHP 🔭

[![Marketing Banner](https://raw.githubusercontent.com/discoverydesign/filament-gaze/main/media/1.jpg)](https://raw.githubusercontent.com/discoverydesign/filament-gaze/main/media/1.jpg)

[![Packagist Version](https://camo.githubusercontent.com/df170c3c99d1a79ae448da4bd6f95d6ba65bcd3e155280c06dffcad05ca26966/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646973636f7665727964657369676e2f66696c616d656e742d67617a652e737667)](https://camo.githubusercontent.com/df170c3c99d1a79ae448da4bd6f95d6ba65bcd3e155280c06dffcad05ca26966/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646973636f7665727964657369676e2f66696c616d656e742d67617a652e737667)[![Total Downloads](https://camo.githubusercontent.com/252bcf2a78a5cf0a8644e4d2c9d25b3817eeef2a31ead159ae840949c5535e6f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646973636f7665727964657369676e2f66696c616d656e742d67617a652e737667)](https://camo.githubusercontent.com/252bcf2a78a5cf0a8644e4d2c9d25b3817eeef2a31ead159ae840949c5535e6f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646973636f7665727964657369676e2f66696c616d656e742d67617a652e737667)

**Now supporting FilamentPHP 4 &amp; FilamentPHP 5**

Demo
----

[](#demo)

[![Gaze Demo Video](https://private-user-images.githubusercontent.com/13165402/363486360-6839eaa7-25e5-4b4a-8272-44e24123a270.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI4Mzc5NDQsIm5iZiI6MTc4MjgzNzY0NCwicGF0aCI6Ii8xMzE2NTQwMi8zNjM0ODYzNjAtNjgzOWVhYTctMjVlNS00YjRhLTgyNzItNDRlMjQxMjNhMjcwLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNjMwVDE2NDA0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTJjNjhjMDBiMzJhMDVlMTM4Mjg3YzA5YjIxZTU4Nzk5M2U0OWY3MTcxMDFiOGUzNjk1MjBmNzNiYjU3MDc4M2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmdpZiJ9.f3aQ-1wPMdOGH8dsr0kQiJRU--ocZBEJR4mnERJ6W5M)](https://www.loom.com/share/eb45fbb9088145888c066bb2d2303457?sid=64fdd7d4-0e53-4a01-a417-d73d1acf2439)

This package allows you to display when other users are viewing the same resource in Filament PHP.

```
composer require discoverydesign/filament-gaze

```

Features
--------

[](#features)

- Ability to see who else is currently viewing a resource.
- Ability to lock a resource to only 1 editor at a time.
- Ability to conditionally allow users to take control of a locked resource.

How to use
----------

[](#how-to-use)

1. Install the package using `composer require discoverydesign/filament-gaze`
2. Add `\DiscoveryDesign\FilamentGaze\FilamentGazePlugin::make()` to your Filament Panel provider.

```
$panel->plugins([
    \DiscoveryDesign\FilamentGaze\FilamentGazePlugin::make()
])

```

3. Publish the assets with `php artisan filament:assets`.
4. Import the package inside your Filament Resource with `use DiscoveryDesign\FilamentGaze\Forms\Components\GazeBanner`.
5. Add the `GazeBanner` form component to your form with `GazeBanner::make()`.
6. If required, publish the translation files with `php artisan vendor:publish --tag=filament-gaze-translations`.

Examples
--------

[](#examples)

### Basic Example

[](#basic-example)

```
