Skip to content

Commit 6dff654

Browse files
committed
MW feedback
1 parent 3c3cfdf commit 6dff654

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/user-authentication.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ User Authentication
2020
Overview
2121
--------
2222

23-
In this guide, you can learn how to authenticate users stored in MongoDB
23+
In this guide, you can learn how to authenticate MongoDB users
2424
by using Laravel's native authentication functionality.
2525

26-
Laravel provides a native Auth module that includes authentication services,
26+
Laravel provides a native ``Auth`` module that includes authentication services,
2727
such as guards that define how users are authenticated and providers that define
2828
how users are retrieved. To learn more about these services, see `Authentication
2929
<https://laravel.com/docs/{+laravel-docs-version+}/authentication>`__ in the
@@ -33,18 +33,19 @@ Modify the User Model
3333
---------------------
3434

3535
By default, Laravel generates the ``User`` Eloquent model in your ``App/Models``
36-
directory. To enable authentication for users stored in MongoDB, your ``User`` model
36+
directory. To enable authentication for MongoDB users, your ``User`` model
3737
must extend the ``MongoDB\Laravel\Auth\User`` class.
3838

3939
To extend this class, navigate to your ``app/Models/User.php`` file and replace the
40-
``use Illuminate\Foundation\Auth\User as Authenticatable`` use statement with the following
40+
``use Illuminate\Foundation\Auth\User as Authenticatable`` statement with the following
4141
code:
4242

4343
.. code-block:: php
4444

4545
use MongoDB\Laravel\Auth\User as Authenticatable;
4646

47-
Ensure that your ``User`` class extends ``Authenticatable``, as shown in the following code:
47+
Next, ensure that your ``User`` class extends ``Authenticatable``, as shown in the following
48+
code:
4849

4950
.. code-block:: php
5051

@@ -53,13 +54,13 @@ Ensure that your ``User`` class extends ``Authenticatable``, as shown in the fol
5354
...
5455
}
5556

56-
After configuring your ``User`` model, create a corresponding controller. For instructions on
57-
creating a controller, see the :ref:`laravel-auth-controller` section on this page.
57+
After configuring your ``User`` model, create a corresponding controller. To learn how to
58+
create a controller, see the :ref:`laravel-auth-controller` section on this page.
5859

5960
Example
6061
~~~~~~~
6162

62-
The following code demonstrates a ``User.php`` file that extends the ``MongoDB\Laravel\Auth\User``
63+
The following code shows a ``User.php`` file that extends the ``MongoDB\Laravel\Auth\User``
6364
class:
6465

6566
.. literalinclude:: /includes/auth/AuthUser.php

0 commit comments

Comments
 (0)