Skip to content

Commit 65c933d

Browse files
authored
Fix colon not followed by code sample (#10666)
1 parent 582d478 commit 65c933d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eloquent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ Route::get('/api/flights/{id}', function (string $id) {
676676
<a name="retrieving-or-creating-models"></a>
677677
### Retrieving or Creating Models
678678

679-
The `firstOrCreate` method will attempt to locate a database record using the given column / value pairs. If the model cannot be found in the database, a record will be inserted with the attributes resulting from merging the first array argument with the optional second array argument:
679+
The `firstOrCreate` method will attempt to locate a database record using the given column / value pairs. If the model cannot be found in the database, a record will be inserted with the attributes resulting from merging the first array argument with the optional second array argument.
680680

681681
The `firstOrNew` method, like `firstOrCreate`, will attempt to locate a record in the database matching the given attributes. However, if a model is not found, a new model instance will be returned. Note that the model returned by `firstOrNew` has not yet been persisted to the database. You will need to manually call the `save` method to persist it:
682682

0 commit comments

Comments
 (0)