A simple command line user creator for Laravel with validation and configuration support.
You can install the package via composer:
composer require amdadulhaq/user-creator-laravel --devYou can publish the config file with:
php artisan vendor:publish --tag=user-creator-configOptionally, you can publish the configuration file to customize the user model:
// config/user-creator.php
return [
'user_model' => env('USER_CREATOR_MODEL', \App\Models\User::class),
];Run the command without arguments to be prompted for user details:
php artisan user:createProvide all arguments directly:
php artisan user:create "John Doe" john@example.com password123Password can be omitted and will be prompted securely:
php artisan user:create "John Doe" john@example.comThe command validates input before creating a user:
- Name: Required, string, max 255 characters
- Email: Required, valid email format, max 255 characters
- Password: Required, minimum 8 characters
composer testFor code style:
composer lintFor static analysis:
composer analysePlease see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.