PHPackages                             tungltdev/laravel-faker-sudo - 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. tungltdev/laravel-faker-sudo

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

tungltdev/laravel-faker-sudo
============================

A utility package for logging in as other users

v0.0.2(3y ago)0212MITPHPPHP &gt;=7.0

Since Sep 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/tungltdev/laravel-faker-sudo)[ Packagist](https://packagist.org/packages/tungltdev/laravel-faker-sudo)[ RSS](/packages/tungltdev-laravel-faker-sudo/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

A Laravel &gt;= 5.6 utility package to enable developers to log in as other users during development.

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

[](#installation)

To install the package, simply follow the steps below.

Install the package using Composer:

```
$ composer require tungltdev/laravel-faker-sudo

```

Add line to file .env to configure toggles function

```
FAKER_USER_ENABLED=true

```

Finally, publish the package's assets (the package won't work without this):

```
$ php artisan vendor:publish --provider="Tungltdev\fakerUserSudoSu\ServiceProvider" --force

```

Include the partial in your layout file.

```
@if(config('faker_user.enabled'))
    @includeIf('faker_user::user-selector')
@endif

```

Config
------

[](#config)

After running `vendor:publish`, a config file called `faker_user.php` should appear in your project. Within here, there are two configuration values:

**faker\_user.allowed\_tlds `array`**

By default, the package will disable itself on any domains that don't have a TLD of `.dev` or `.local`. This is a security measure to reduce the risk of accidentally enabling the package in production. If you have a different TLD in development, you can edit the config option `faker_user.allowed_tlds`.

**faker\_user.user\_model `string`**

The path to the application User model. This will be used to retrieve the users displayed in the select dropdown. This must be an Eloquent Model instance. This is set to `App\Models\User` by default.

Disclaimer - DANGER!
--------------------

[](#disclaimer---danger)

This package can pose a serious security issue if used incorrectly, as anybody will be able to take control of any user's account. Please ensure that the service provider is only registered when the app is in a debug/local environment.

By default, the package will disable itself on any domains that don't have a TLD of `.dev` or `.local`. This is a security measure to reduce the risk of accidentally enabling the package in production. If you have a different TLD in development, you can edit the config option `faker_user.allowed_tlds`.

By using this package, you agree that VIA Creative and the contributors of this package cannot be held responsible for any damages caused by using this package.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1031 days

Total

2

Last Release

1390d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c53592e19db478ad1808cd8f7816bb52941eda1026a6d9f5ebeedba13bd6351b?d=identicon)[tungltdev](/maintainers/tungltdev)

---

Top Contributors

[![lethanhtung97](https://avatars.githubusercontent.com/u/42159471?v=4)](https://github.com/lethanhtung97 "lethanhtung97 (10 commits)")

---

Tags

laraveldebugging

### Embed Badge

![Health badge](/badges/tungltdev-laravel-faker-sudo/health.svg)

```
[![Health](https://phpackages.com/badges/tungltdev-laravel-faker-sudo/health.svg)](https://phpackages.com/packages/tungltdev-laravel-faker-sudo)
```

###  Alternatives

[viacreative/sudo-su

A utility package for logging in as other users

546143.7k](/packages/viacreative-sudo-su)[imdhemy/laravel-purchases

The top-notch Laravel receipt validator.

3831.1M2](/packages/imdhemy-laravel-purchases)[martbock/laravel-diceware

Diceware Passphrase Generator for Laravel

3264.7k](/packages/martbock-laravel-diceware)[orchestra/auth

Auth Component for Orchestra Platform

24108.5k3](/packages/orchestra-auth)[ingria/laravel-x509-auth

Laravel 5 Client Certificate auth middleware

375.6k](/packages/ingria-laravel-x509-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
