Comments (2)
This would be really useful. It would also be nice to have the option to use a regular text button instead of an icon.
If anyone needs this immediately you can do this for now:
use STS\FilamentImpersonate\Impersonate;
class ViewUser extends ViewRecord
{
// ...
protected function getActions(): array
{
return array_merge([
Pages\Actions\ButtonAction::make('impersonate')
->action(function () {
Impersonate::impersonate($this->record);
}),
], parent::getActions());
}
}
from filament-impersonate.
@jszobody I just added this in #27, please test, if you can
from filament-impersonate.
Related Issues (20)
- Enable to show banner HOT 5
- Formatting of Action in a group doesn't match other Actions HOT 6
- [Suggestion] Submit to Filament plugins site HOT 1
- Crashing when leaving impersonate HOT 4
- Cause gap on Filament Sidebar HOT 5
- Problem to impersonate with admin guard HOT 7
- Error on impersionate HOT 4
- Display issue HOT 8
- Error on redirect FilamentManager::getUserName() HOT 3
- Auto mode not working properly
- registerRenderHook(): Argument #1 ($name) must be of type string, null given HOT 6
- Banner hidden by my navbar HOT 1
- Trapped in exception when impersonating soft-deleted user HOT 1
- Table Impersonate does not work with widgets HOT 2
- Trouble on impersonate from resources other than UserResource HOT 3
- Add Laravel 11 support HOT 3
- ImpersonateManager does not leave the impersonation HOT 5
- localize HOT 1
- It does not work with Multi-Tenant app HOT 1
- Always impersonating myself HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from filament-impersonate.