{"id":37001468,"url":"https://github.com/amosmos/laravel-cli-create-user","last_synced_at":"2026-01-14T00:10:47.822Z","repository":{"id":47183450,"uuid":"100930843","full_name":"amosmos/laravel-cli-create-user","owner":"amosmos","description":"This package allows you to quickly create, list and remove Eloquent user models from the CLI. If you want, it will even email the user their credentials!","archived":false,"fork":false,"pushed_at":"2022-11-10T10:32:01.000Z","size":42,"stargazers_count":16,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-24T10:21:06.856Z","etag":null,"topics":["artisan","cli","create","database","eloquent","laravel","user"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amosmos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-21T08:32:45.000Z","updated_at":"2025-04-22T08:15:45.000Z","dependencies_parsed_at":"2023-01-21T21:02:40.057Z","dependency_job_id":null,"html_url":"https://github.com/amosmos/laravel-cli-create-user","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/amosmos/laravel-cli-create-user","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amosmos%2Flaravel-cli-create-user","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amosmos%2Flaravel-cli-create-user/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amosmos%2Flaravel-cli-create-user/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amosmos%2Flaravel-cli-create-user/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amosmos","download_url":"https://codeload.github.com/amosmos/laravel-cli-create-user/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amosmos%2Flaravel-cli-create-user/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406481,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artisan","cli","create","database","eloquent","laravel","user"],"created_at":"2026-01-14T00:10:47.249Z","updated_at":"2026-01-14T00:10:47.801Z","avatar_url":"https://github.com/amosmos.png","language":"PHP","readme":"# Easily create, list and remove Laravel users with a CLI command\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/boaideas/laravel-cli-create-user.svg?style=flat-square)](https://packagist.org/packages/boaideas/laravel-cli-create-user)\n[![Software License](https://img.shields.io/packagist/l/boaideas/laravel-cli-create-user.svg?style=flat-square)](LICENSE)\n[![StyleCI](https://styleci.io/repos/100930843/shield?branch=master)](https://styleci.io/repos/100930843)\n[![Total Downloads](https://img.shields.io/packagist/dt/boaideas/laravel-cli-create-user.svg?style=flat-square)](https://packagist.org/packages/boaideas/laravel-cli-create-user)\n\nUsing this artisan command it's easy to create Laravel users from the CLI whenever you need them. If you want, it will even email the user their credentials.\n\nThe command will validate the user details using Laravel's regular validation engine (which means you can create your own rules). If you want, the command can create a random password for you.\n\nWe also added commands to list all existing users and to easily remove users.\n\n## Requirements\n\nThe package is based on the defaul User model that ships with Laravel, so it assumes you're using a model (you can name it anything you want) with name, email and password fields.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require boaideas/laravel-cli-create-user\n```\n\nIf you're installing the package on Laravel 5.5 or higher, you're done (The package uses Laravel's auto package discovery).\n\nIf you're using Laravel 5.4 or less, add the `BOAIdeas\\CreateUser\\CreateUserServiceProvider` service provider to your providers array:\n\n```php\n// config/app.php\n\n'providers' =\u003e [\n    ...\n    BOAIdeas\\CreateUser\\CreateUserServiceProvider::class,\n];\n```\n\n## Usage\n\n### Create a new user\nFrom your CLI execute:\n\n```bash\nphp artisan user:create\n```\n\nYou will be asked for the user's name, email and password, and then the user account will be created. If you choose, a random password will be created for you.\n\n#### Input validation\nYour input will be validated using Laravel's validation engine with Laravel's default user input rules (you can [change the rules](#configuration) if you want).\n\n#### Email user credentials\nYou will be asked if you want to send an email to the newly created user with their credentials. If you do, the command will send a regular Laravel notification to the user's email, so make sure you've sert your app's [mail settings](https://laravel.com/docs/master/mail).\n\nThe notification is using the default APP_NAME, APP_URL, MAIL_FROM_ADDRESS and MAIL_FROM_NAME so make sure they're set correctly.\n\n### List all existing users\nFrom your CLI execute:\n\n```bash\nphp artisan user:list\n```\n\nYou will be presented with a table of all existing users.\n\n### Remove a user (by ID)\nFrom your CLI execute:\n\n```bash\nphp artisan user:remove {user_id}\n```\n\nThe command will confirm that you want to remove that user and will remove it.\n\n## Configuration\n\nBy default, the package assumes your User model is called User and validates your model input with the default rules that Laravel uses for users creation.\n\nIf you want to change any of these settings, you can publish the config file with:\n\n```bash\nphp artisan vendor:publish --provider=\"BOAIdeas\\CreateUser\\CreateUserServiceProvider\"\n```\n\nThis is the content of the published config file:\n\n```php\n// config/createuser.php\n\nreturn [\n    /*\n    * The class name of the user model to be used.\n    */\n    'model' =\u003e 'App\\User',\n\n    /*\n    * The validation rules to check for user model input.\n    */\n    'validation_rules' =\u003e [\n    \t'name' =\u003e 'string|max:255',\n    \t'email' =\u003e 'string|email|max:255|unique:users',\n    \t'password' =\u003e 'string|min:6',\n    ],\n\n];\n```\n\n## Credits\n\n- [Amos Shacham](https://github.com/amosmos)\n- [All Contributors](../../contributors)\n\n## Alternatives\n\n- [laravel-make-user](https://github.com/michaeldyrynda/laravel-make-user)\n- [laravel-cli-user](https://github.com/subdesign/laravel-cli-user)\n- [create-user-command](https://github.com/rap2hpoutre/create-user-command)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famosmos%2Flaravel-cli-create-user","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famosmos%2Flaravel-cli-create-user","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famosmos%2Flaravel-cli-create-user/lists"}