spresnac / laravel-create-user-cli
Create a user-entry from cli with artisan
Installs: 40 253
Dependents: 1
Suggesters: 0
Security: 0
Stars: 23
Watchers: 2
Forks: 5
Open Issues: 0
Requires
- php: ^7.4|^8.0|^8.1
Requires (Dev)
- laravel/framework: ^8|^9
- orchestra/testbench: ^6|^7
This package is auto-updated.
Last update: 2024-11-24 14:09:32 UTC
README
About this package 💡
This package is an easy way to create a user for a ci/cd workflow. Just setup your project as usual and create a new user by firing a cli-command.
Installation 💻
First things first, so require the package:
composer require spresnac/laravel-create-user-cli
Now, register the new command within your app\Console\Kernel.php
protected $commands = [
\spresnac\createcliuser\CreateCliUserCommand::class,
];
Usage 💪
This package is very simple to use, open up your console and type
php artisan user:create
When using it within some kind of continous deployment, use the parameter and options to get fully automated like
php artisan user:create "user_name" "user_email" "user_password" --force
One can get help with
php artisan help user:create
CI environments
This is an overview of all result codes you can handle in ci environements:
Tests 🤓
Start the tests like standard with
composer test-ci
or with
vendor/bin/phpunit
Finally 🤩
... have fun ;)