Skip to content

Commit 3e89923

Browse files
update readme
1 parent b2ced3a commit 3e89923

File tree

1 file changed

+6
-25
lines changed

1 file changed

+6
-25
lines changed

README.md

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Laravel Make User
2-
## v3.0.0
2+
## v4.0.0
33

44
[![Build Status](https://travis-ci.org/michaeldyrynda/laravel-make-user.svg?branch=master)](https://travis-ci.org/michaeldyrynda/laravel-make-user)
55
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/michaeldyrynda/laravel-make-user/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/michaeldyrynda/laravel-make-user/?branch=master)
@@ -11,7 +11,7 @@
1111

1212
## Introduction
1313

14-
Out of the box, Laravel makes it really simple to scaffold out with its [authentication quickstart](https://laravel.com/docs/5.4/authentication#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.
14+
Out of the box, Laravel makes it really simple to scaffold out with its [authentication quickstart](https://laravel.com/docs/5.7/authentication#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.
1515

1616
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.
1717

@@ -24,45 +24,26 @@ Laravel | Package
2424
5.4.* | 1.0.*
2525
5.5.* | 2.0.*
2626
5.6.* | 3.0.*
27+
5.7.* | 4.0.*
2728

2829
## Code Samples
2930

3031
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.
3132

3233
```
33-
php artisan make:user email {--name=NAME} {--password=PASSWORD} {--send-reset} {--fields=FIELDS} {--force}
34+
php artisan make:user
3435
```
3536

36-
If the password is not specified, the `--send-reset` option is implicit, sending the default password reset notification to the user. This package does not currently provide support to customise the content or notification sent as my general practice is to create a user account, then have the user manually perform a password reset. The implied `--send-reset` saves a manual step in this process.
37-
38-
This package runs on the assumption that you are using Laravel's default `users` table structure. If you have additional columns in your database, they can be specified using the `--fields` option, separating each key/value pair with a comma:
39-
40-
```
41-
php artisan make:user [email protected] --fields="admin:true,other_field:other value"
42-
```
43-
44-
This will create a new user with the email address `[email protected]`, a randomly generated password, send the password reset email to `[email protected]`, and set the `admin` field to `true`. Should you need to circumvent your user model's guarded fields, you can pass the `--force` option, and the user model will be created using the `forceCreate` method.
37+
This package runs on the assumption that you are using Laravel's default `users` table structure. You can specify additional fields when prompted.
4538

4639
## Installation
4740

4841
This package is installed via [Composer](https://getcomposer.org/). To install, run the following command.
4942

5043
```bash
51-
composer require "dyrynda/laravel-make-user:~3.0"
44+
composer require "dyrynda/laravel-make-user:~4.0"
5245
```
5346

54-
Then add the service provider to your `config/app.php` file:
55-
56-
```php
57-
'providers' => [
58-
// ...
59-
Dyrynda\Artisan\MakeUserServiceProvider::class,
60-
// ...
61-
]
62-
```
63-
64-
Note, this package has support for Laravel's auto package discovery, which will be available from version 5.5 onwards.
65-
6647
## Support
6748

6849
If you are having general issues with this package, feel free to contact me on [Twitter](https://twitter.com/michaeldyrynda).

0 commit comments

Comments
 (0)