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
Copy file name to clipboardExpand all lines: README.md
+12
Original file line number
Diff line number
Diff line change
@@ -232,6 +232,18 @@ class Book extends Model
232
232
}
233
233
```
234
234
235
+
### Extending the Authenticable base model
236
+
This package includes a MongoDB Authenticatable Eloquent class `Jenssegers\Mongodb\Auth\User` that you can use to replace the default Authenticatable class `Illuminate\Foundation\Auth\User` for your `User` model.
237
+
238
+
```php
239
+
use Jenssegers\Mongodb\Auth\User as Authenticatable;
240
+
241
+
class User extends Authenticatable
242
+
{
243
+
244
+
}
245
+
```
246
+
235
247
### Soft Deletes
236
248
237
249
When soft deleting a model, it is not actually removed from your database. Instead, a deleted_at timestamp is set on the record.
0 commit comments