Skip to content

Commit bf4b643

Browse files
committed
edits
1 parent e9b6a3c commit bf4b643

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/user-authentication.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ Sanctum and publish its migration file:
129129
composer require laravel/sanctum
130130
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
131131

132-
Next, modify the ``PersonalAccessToken`` model provided by Laravel Sanctum to use
133-
Sanctum with {+odm-short+}. The following code extends the ``PersonalAccessToken`` model
134-
to enable MongoDB:
132+
To use Laravel Sanctum with {+odm-short+}, modify the ``PersonalAccessToken`` model provided
133+
by Sanctum to use the ``DocumentModel`` trait from the ``MongoDB\Laravel\Eloquent`` namespace.
134+
The following code modifies the ``PersonalAccessToken`` model to enable MongoDB:
135135

136136
.. literalinclude:: /includes/auth/PersonalAccessToken.php
137137
:language: php
138138
:dedent:
139139

140-
Then, run the following command to modify the database schema to handle API tokens:
140+
Next, run the following command to modify the database schema:
141141

142142
.. code-block:: bash
143143

0 commit comments

Comments
 (0)