dyrynda / laravel-make-user
An Artisan console command to create users in your Laravel application.
Installs: 40 642
Dependents: 3
Suggesters: 1
Security: 0
Stars: 109
Watchers: 3
Forks: 12
Open Issues: 1
Requires
- php: ^8.1
- illuminate/auth: ^10.0
- illuminate/console: ^10.0
- illuminate/database: ^10.0
- illuminate/notifications: ^10.0
- illuminate/support: ^10.0
Requires (Dev)
- mockery/mockery: ^1.4.4
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^9.6.0 || ^10.0.7
README
Introduction
Out of the box, Laravel makes it really simple to scaffold out with its authentication quickstart. Whilst this makes it really easy to register and authenticate users, for many of the applications I find myself building, we usually remove the ability for visitors to register themselves.
I still need a way to get users into those applications, however, and whilst they're in early development this usually involves firing up Laravel Tinker. This can be a tedious process, and one that I repeat many times over.
This package aims to solve the repetition problem by providing a convenient make:user
Artisan command.
Version compatibility
Code Samples
This package exposes a make:user
command, which is accessed via the Artisan command line utility. The package will use the model defined in your auth.providers.users.model
configuration value.
php artisan make:user
This package runs on the assumption that you are using Laravel's default users
table structure. You can specify additional fields when prompted.
Installation
This package is installed via Composer. To install, run the following command.
composer require dyrynda/laravel-make-user
Support
If you are having general issues with this package, feel free to contact me on Twitter.
If you believe you have found an issue, please report it using the GitHub issue tracker, or better yet, fork the repository and submit a pull request.
If you're using this package, I'd love to hear your thoughts. Thanks!
Treeware
You're free to use this package, but if it makes it to your production environment you are required to buy the world a tree.
It’s now common knowledge that one of the best tools to tackle the climate crisis and keep our temperatures from rising above 1.5C is to plant trees. If you support this package and contribute to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
You can buy trees here
Read more about Treeware at treeware.earth