Skip to content

DOCSP-38344: docs cleanup #2902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Apr 26, 2024
Merged

Conversation

ccho-mongodb
Copy link
Contributor

@ccho-mongodb ccho-mongodb commented Apr 23, 2024

JIRA: https://jira.mongodb.org/browse/DOCSP-38344
Staging:
https://preview-mongodbcchomongodb.gatsbyjs.io/laravel/DOCSP-38344-cleanup/

Related docs PR: https://github.com/10gen/docs-laravel/pull/74

Checklist

  • Add tests and ensure they pass
  • Add an entry to the CHANGELOG.md file
  • Update documentation for new features

Copy link
Contributor

@rustagir rustagir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! very throrough

Comment on lines 78 to 80
- Specify ``"mongodb"`` in the ``$connection`` field of your migration class
- Make sure your ``connections`` array item contains a valid ``mongodb``
entry in your ``config/database.php`` file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s; reverse these items' order

Copy link
Contributor

@rustagir rustagir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can also edit the text on the Fundamentals landing page to match the list items

@ccho-mongodb ccho-mongodb marked this pull request as ready for review April 23, 2024 15:35
@ccho-mongodb ccho-mongodb requested a review from a team as a code owner April 23, 2024 15:35
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


.. code-block:: php
:emphasize-lines: 2-6

'connections' => [
'mongodb' => [
'driver' => 'mongodb',
'dsn' => env('DB_URI', '<connection string>'),
'dsn' => env('DB_URI'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that we can still set de default value mongodb://localhost:27017/. But that may confuse a beginner, so it's okay to remove the default value.

@norareidy norareidy merged commit 3bc0c4a into mongodb:4.1 Apr 26, 2024
This was referenced Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants