File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -129,15 +129,15 @@ Sanctum and publish its migration file:
129
129
composer require laravel/sanctum
130
130
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
131
131
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:
135
135
136
136
.. literalinclude:: /includes/auth/PersonalAccessToken.php
137
137
:language: php
138
138
:dedent:
139
139
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:
141
141
142
142
.. code-block:: bash
143
143
You can’t perform that action at this time.
0 commit comments