Skip to content

Commit e654072

Browse files
committed
RR feedback
1 parent b0af0c1 commit e654072

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

docs/fundamentals/database-collection.txt

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ as in the preceding example, but the query is constructed by using the
161161
List Collections
162162
----------------
163163

164-
This section describes how to see information about each collection in a database
165-
in the following ways:
164+
You can take either of the following actions to see information
165+
about the collections in a database:
166166

167167
- :ref:`laravel-list-coll-command`
168168
- :ref:`laravel-list-coll-methods`
@@ -172,16 +172,17 @@ in the following ways:
172172
Run a Shell Command
173173
~~~~~~~~~~~~~~~~~~~
174174

175-
You can list the collections in a database by running the following shell
176-
command from your project root:
175+
You can list the collections in a database by running the following
176+
command in your shell from your project's root directory:
177177

178178
.. code-block:: bash
179179

180180
php artisan db:show
181181

182182
This command outputs information about the configured database and lists its
183183
collections under the ``Table`` header. For more information about the ``db:show``
184-
command, see `Laravel: New DB Commands <https://blog.laravel.com/laravel-new-db-commands-and-more>`__.
184+
command, see `Laravel: New DB Commands <https://blog.laravel.com/laravel-new-db-commands-and-more>`__
185+
on the official Laravel blog.
185186

186187
.. _laravel-list-coll-methods:
187188

@@ -212,8 +213,8 @@ the collections in the database:
212213
List Collection Fields
213214
----------------------
214215

215-
This section describes how to see information about each field in a collection
216-
in the following ways:
216+
You can take either of the following actions to see information
217+
about each field in a collection:
217218

218219
- :ref:`laravel-list-fields-command`
219220
- :ref:`laravel-list-fields-methods`
@@ -223,16 +224,17 @@ in the following ways:
223224
Run a Shell Command
224225
~~~~~~~~~~~~~~~~~~~
225226

226-
You can see a list of fields in a collection by running the following shell
227-
command from your project root:
227+
You can see a list of fields in a collection by running the following
228+
command in your shell from your project's root directory:
228229

229230
.. code-block:: bash
230231

231232
php artisan db:table <collection name>
232233

233234
This command outputs each collection field and its corresponding data type
234235
under the ``Column`` header. For more information about the ``db:table``
235-
command, see `Laravel: New DB Commands <https://blog.laravel.com/laravel-new-db-commands-and-more>`__.
236+
command, see `Laravel: New DB Commands <https://blog.laravel.com/laravel-new-db-commands-and-more>`__
237+
on the official Laravel blog.
236238

237239
.. _laravel-list-fields-methods:
238240

@@ -242,12 +244,12 @@ Call Schema Methods
242244
You can list the fields in a collection by calling the ``Schema::getColumns()``
243245
schema builder method in your application.
244246

245-
You can also call the following methods to return more information about the
247+
You can also use the following methods to return more information about the
246248
collection fields:
247249

248-
- ``Schema::hasColumn(string $field)``: checks if the specified field exists
250+
- ``Schema::hasColumn(string $<field name>)``: checks if the specified field exists
249251
in at least one document
250-
- ``Schema::hasColumns(string[] $fields)``: checks if each specified field exists
252+
- ``Schema::hasColumns(string[] $<field names>)``: checks if each specified field exists
251253
in at least one document
252254

253255
Example

0 commit comments

Comments
 (0)