PHPackages                             paulschoeman/filament-impersonate - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. paulschoeman/filament-impersonate

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

paulschoeman/filament-impersonate
=================================

A temporary fork of stechstudio's Filament package to impersonate your users. Dependencies updated to be Laravel 11 compatible.

01.1kPHP

Since Oct 3Pushed 1y agoCompare

[ Source](https://github.com/paulschoeman/filament-impersonate)[ Packagist](https://packagist.org/packages/paulschoeman/filament-impersonate)[ RSS](/packages/paulschoeman-filament-impersonate/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Filament Impersonate
====================

[](#filament-impersonate)

[![Latest Version on Packagist](https://camo.githubusercontent.com/668a960b05df87e884a852d586ac626c479ca780324d3fe898cf6d7a75364743/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737465636873747564696f2f66696c616d656e742d696d706572736f6e6174652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/stechstudio/filament-impersonate)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This is a plugin for [Filament](https://filamentadmin.com/) that makes it easy to impersonate your users.

### Credit

[](#credit)

This package uses  under the hood, and borrows heavily from .

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

[](#installation)

You know the drill:

```
composer require stechstudio/filament-impersonate
```

Quickstart
----------

[](#quickstart)

### 1. Add table action

[](#1-add-table-action)

First open the resource where you want the impersonate action to appear. This is generally going to be your `UserResource` class.

Go down to the `table` method. After defining the table columns, you want to add `Impersonate` as a new action for the table via `actions` method. Your class should look like this:

```
namespace App\Filament\Resources;

use Filament\Resources\Resource;
use STS\FilamentImpersonate\Tables\Actions\Impersonate;

class UserResource extends Resource {
    public static function table(Table $table)
    {
        return $table
            ->columns([
                // ...
            ])
            ->actions([
                Impersonate::make(), // guard('another-guard')
    ->redirectTo(route('some.other.route'));
```

### 2. Add the page action

[](#2-add-the-page-action)

Now open the page where you would want the button to appear, this will commonly be `EditUser`;

Go to the `getActions` method and add the `Impersonate` page action here.

```
