File tree Expand file tree Collapse file tree 2 files changed +5
-40
lines changed
src/Jenssegers/Mongodb/Eloquent Expand file tree Collapse file tree 2 files changed +5
-40
lines changed Original file line number Diff line number Diff line change 19
19
],
20
20
"license" : " MIT" ,
21
21
"require" : {
22
- "illuminate/support" : " ^5.8|^6.0" ,
23
- "illuminate/container" : " ^5.8|^6.0" ,
24
- "illuminate/database" : " ^5.8|^6.0" ,
25
- "illuminate/events" : " ^5.8|^6.0" ,
22
+ "illuminate/support" : " ^5.8|^6.0|^7.0 " ,
23
+ "illuminate/container" : " ^5.8|^6.0|^7.0 " ,
24
+ "illuminate/database" : " ^5.8|^6.0|^7.0 " ,
25
+ "illuminate/events" : " ^5.8|^6.0|^7.0 " ,
26
26
"mongodb/mongodb" : " ^1.4" ,
27
27
"cedx/coveralls" : " ^11.2"
28
28
},
Original file line number Diff line number Diff line change @@ -224,42 +224,7 @@ public function getCasts()
224
224
{
225
225
return $ this ->casts ;
226
226
}
227
-
228
- /**
229
- * @inheritdoc
230
- */
231
- public function originalIsEquivalent ($ key , $ current )
232
- {
233
- if (!array_key_exists ($ key , $ this ->original )) {
234
- return false ;
235
- }
236
-
237
- $ original = $ this ->getOriginal ($ key );
238
-
239
- if ($ current === $ original ) {
240
- return true ;
241
- }
242
-
243
- if (null === $ current ) {
244
- return false ;
245
- }
246
-
247
- if ($ this ->isDateAttribute ($ key )) {
248
- $ current = $ current instanceof UTCDateTime ? $ this ->asDateTime ($ current ) : $ current ;
249
- $ original = $ original instanceof UTCDateTime ? $ this ->asDateTime ($ original ) : $ original ;
250
-
251
- return $ current == $ original ;
252
- }
253
-
254
- if ($ this ->hasCast ($ key )) {
255
- return $ this ->castAttribute ($ key , $ current ) ===
256
- $ this ->castAttribute ($ key , $ original );
257
- }
258
-
259
- return is_numeric ($ current ) && is_numeric ($ original )
260
- && strcmp ((string ) $ current , (string ) $ original ) === 0 ;
261
- }
262
-
227
+
263
228
/**
264
229
* Remove one or more fields.
265
230
* @param mixed $columns
You can’t perform that action at this time.
0 commit comments