PHPackages                             itutu-media/laravel-make-user - 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. [CLI &amp; Console](/categories/cli)
4. /
5. itutu-media/laravel-make-user

ActiveLibrary[CLI &amp; Console](/categories/cli)

itutu-media/laravel-make-user
=============================

Create a new user with Artisan

2.1.0(2y ago)0154[2 PRs](https://github.com/itutu-media/laravel-make-user/pulls)MITPHPPHP ^8.1

Since Dec 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/itutu-media/laravel-make-user)[ Packagist](https://packagist.org/packages/itutu-media/laravel-make-user)[ Docs](https://github.com/itutu-media/laravel-make-user)[ RSS](/packages/itutu-media-laravel-make-user/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (13)Versions (5)Used By (0)

Create a new user with Artisan
==============================

[](#create-a-new-user-with-artisan)

[![Latest Version on Packagist](https://camo.githubusercontent.com/cb7adc9eb17752b4ff72d0169d6004e9062e3492e36a92bcbf509bc9418f2f91/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f69747574752d6d656469612f6c61726176656c2d6d616b652d757365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/itutu-media/laravel-make-user)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4184b353012854b2b85dbfed9c5719ed1f2f004257da3649d0cd205d239c1d43/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f69747574752d6d656469612f6c61726176656c2d6d616b652d757365722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/itutu-media/laravel-make-user/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5bec39f80b250737bf4e45535a13dbe559e14fc2983ac058ad5a32f14f754650/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f69747574752d6d656469612f6c61726176656c2d6d616b652d757365722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/itutu-media/laravel-make-user/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/28ff535ca49023fb8ef55103969da36c014fab2964229930b943fa3e296649b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69747574752d6d656469612f6c61726176656c2d6d616b652d757365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/itutu-media/laravel-make-user)

Dependencies
------------

[](#dependencies)

- [Spatie Permission package (optional)](https://github.com/spatie/laravel-permission)If you want to use the `--superuser` or `--roles` options, make sure the Spatie Permission package is installed and configured in your Laravel application.

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

[](#installation)

You can install the package via composer:

```
composer require itutu-media/laravel-make-user
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-make-user-config"
```

This is the contents of the published config file:

```
return [
  'super_admin_role_name' => env('SUPER_ADMIN_ROLE_NAME', 'Super Admin'),
  'rules' => [
    'name' => 'required|string|max:255',
    'email' => 'required|string|email|max:255|unique:users',
    'password' => 'required|string|min:8|regex:/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+$/',
  ],
];
```

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

[](#configuration)

Open file `config/make-user.php` and change the rules based on your needs for the new user.

Usage
-----

[](#usage)

Once installed, you can use the `make:user` command to create a new user. Here's an example:

```
php artisan make:user
```

### Command Options

[](#command-options)

The `make:user` command supports the following options:

> `--superadmin` (`-S`): Assign the superadmin role to the new user. Requires the `Spatie\Permission\Traits\HasRoles` trait to be added to the User model.
>
> `--roles` (`-R`): Assign roles to the new user. Requires the `Spatie\Permission\Traits\HasRoles` trait to be added to the User model.

### - Super Admin

[](#--super-admin)

To use the `--superadmin` option, you need to set the `super_admin_role_name` value in the `config/make-user.php` file. Here's an example of using the make:user command with the `--superadmin` option:

```
php artisan make:user --superuser
```

### - Roles

[](#--roles)

Here's an example of using the make:user command with the `--roles` options:

```
php artisan make:user --role
```

This will prompt you to enter values for fillable nullable columns and select the roles to assign to the new user.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [ITUTU Media](https://github.com/itutu-media)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.3% 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 ~0 days

Total

2

Last Release

875d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fdaaff842a2275cbbde6295b7767f7a35485a793568c973047754233c9c50ce?d=identicon)[ITUTUMedia](/maintainers/ITUTUMedia)

---

Top Contributors

[![itutu-media](https://avatars.githubusercontent.com/u/77134484?v=4)](https://github.com/itutu-media "itutu-media (11 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

laravelITUTU Medialaravel-make-user

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/itutu-media-laravel-make-user/health.svg)

```
[![Health](https://phpackages.com/badges/itutu-media-laravel-make-user/health.svg)](https://phpackages.com/packages/itutu-media-laravel-make-user)
```

###  Alternatives

[worksome/envy

Automatically keep your .env files in sync.

6871.8M](/packages/worksome-envy)[spatie/laravel-signal-aware-command

Handle signals in artisan commands

16613.2M2](/packages/spatie-laravel-signal-aware-command)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[lorisleiva/artisan-ui

Run your artisan commands by pressing buttons.

2254.1k](/packages/lorisleiva-artisan-ui)[geowrgetudor/command-history

Track Laravel Artisan commands executions inside Laravel Pulse

1324.1k](/packages/geowrgetudor-command-history)[thettler/laravel-console-toolkit

This Package provides some usefully console features like the attribute syntax for arguments and options, validation, auto ask and casting.

324.1k](/packages/thettler-laravel-console-toolkit)

PHPackages © 2026

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