You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -240,7 +241,7 @@ use Jenssegers\Mongodb\Auth\User as Authenticatable;
240
241
241
242
class User extends Authenticatable
242
243
{
243
-
244
+
244
245
}
245
246
```
246
247
@@ -263,6 +264,13 @@ class User extends Model
263
264
264
265
For more information check [Laravel Docs about Soft Deleting](http://laravel.com/docs/eloquent#soft-deleting).
265
266
267
+
### Guarding attributes
268
+
269
+
When choosing between guarding attributes or marking some as fillable, Taylor Otwell prefers the fillable route.
270
+
This is in light of [recent security issues described here](https://blog.laravel.com/security-release-laravel-61835-7240).
271
+
272
+
Keep in mind guarding still works, but you may experience unexpected behavior.
273
+
266
274
### Dates
267
275
268
276
Eloquent allows you to work with Carbon or DateTime objects instead of MongoDate objects. Internally, these dates will be converted to MongoDate objects when saved to the database.
0 commit comments