File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -117,12 +117,12 @@ in the Laravel documentation.
117
117
Implement Schema Validation
118
118
---------------------------
119
119
120
- You can use the ``jsonSchema()`` method to implement ** :manual:`schema
121
- validation </core/schema-validation/>`** when using the following schema
120
+ You can use the ``jsonSchema()`` method to implement :manual:`schema
121
+ validation </core/schema-validation/>` when using the following schema
122
122
builder methods:
123
123
124
- - ``Schema::create()``: When creating a new collection.
125
- - ``Schema::table()``: When updating collection properties.
124
+ - ``Schema::create()``: When creating a new collection
125
+ - ``Schema::table()``: When updating collection properties
126
126
127
127
After you implement schema validation, the server allows you to run only
128
128
those write operations which follow the validation rules. Use schema
@@ -166,8 +166,8 @@ contain the ``license_number`` field with an integer value between
166
166
167
167
If you attempt to insert a document into the ``pilots`` collection that
168
168
violates the schema validation rule, {+odm-long+} returns a
169
- :php:`mongodb-driver-exception-bulkwriteexception` because the
170
- validation action is set to ``"error"``.
169
+ :php:`BulkWriteException < mongodb-driver-exception-bulkwriteexception>`
170
+ because the validation action is set to ``"error"``.
171
171
172
172
.. _laravel-eloquent-collection-exists:
173
173
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ public function up(): void
31
31
'bsonType ' => 'integer ' ,
32
32
'minimum ' => 1000 ,
33
33
'maximum ' => 9999 ,
34
- 'description ' => 'requires the license_number field with an int value 1000-9999 ' ,
35
34
],
36
35
],
37
36
],
You can’t perform that action at this time.
0 commit comments