From e456dc183b55998677421f82e7a5bbfacda350f8 Mon Sep 17 00:00:00 2001 From: Steve Parks Date: Mon, 17 Jun 2024 12:50:09 +0100 Subject: [PATCH] Edit docs for storing users in a database to place instructions in correct order (#1371) * Update storing-users-in-a-database.md Moving the tip about composer require doctrine/dbal to a position in the docs where it is most useful. Otherwise the reader works down all the instructions, and then finds this when it's too late! * Remove the `doctine/dbal` suggestion * Tweak optional --------- Co-authored-by: Duncan McClean --- content/collections/tips/storing-users-in-a-database.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/content/collections/tips/storing-users-in-a-database.md b/content/collections/tips/storing-users-in-a-database.md index 4f4400ea5..797fe5206 100644 --- a/content/collections/tips/storing-users-in-a-database.md +++ b/content/collections/tips/storing-users-in-a-database.md @@ -139,7 +139,7 @@ You will need to run migrations to prepare your database for Statamic's user, pa php please auth:migration php artisan migrate ``` -3. (optional) If you are using the Statamic forgot password form, add the following method to your User model +4. Optional: If you are using the Statamic forgot password form, add the following method to your User model ```php public function sendPasswordResetNotification($token) { @@ -147,9 +147,5 @@ You will need to run migrations to prepare your database for Statamic's user, pa } ``` -:::tip -When using `sqlite` or `mysql` as your database driver, make sure to `composer require doctrine/dbal`. We change the `users` table in our auth migrations and therefore [require](https://laravel.com/docs/master/migrations#modifying-columns) the `doctrine/dbal` to run the migrations without errors. -::: - This assumes you are happy to use our opinionated setup. If you need something more custom you can [create your own user driver](/tips/storing-users-somewhere-custom).