We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32576f2 commit aa47740Copy full SHA for aa47740
docs/upgrade.txt
@@ -71,6 +71,21 @@ Version 5.x Breaking Changes
71
72
This library version introduces the following breaking changes:
73
74
+- The query builder returns results as objects, instead of as arrays.
75
+ This change requires that you change array access to property access
76
+ when interacting with query results.
77
+
78
+ The following code shows how to retrieve a query result and access a
79
+ property from the result object:
80
81
+ .. code-block:: php
82
+ :emphasize-lines: 4
83
84
+ DB::table('accounts')
85
+ ->where('name', 'Anita Charles')
86
+ ->first()
87
+ ->balance
88
89
- In query results, the library converts BSON ``UTCDateTime`` objects to ``Carbon``
90
date classes, applying the default timezone.
91
0 commit comments