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
-[Upgrading from version 2 to 3](#upgrading-from-version-2-to-3)
47
49
@@ -230,6 +232,18 @@ class Book extends Model
230
232
}
231
233
```
232
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
+
233
247
### Soft Deletes
234
248
235
249
When soft deleting a model, it is not actually removed from your database. Instead, a deleted_at timestamp is set on the record.
@@ -1067,6 +1081,8 @@ If you want to use MongoDB as your database backend, change the driver in `confi
1067
1081
'connections' => [
1068
1082
'database' => [
1069
1083
'driver' => 'mongodb',
1084
+
// You can also specify your jobs specific database created on config/database.php
1085
+
'connection' => 'mongodb-job',
1070
1086
'table' => 'jobs',
1071
1087
'queue' => 'default',
1072
1088
'expire' => 60,
@@ -1078,23 +1094,31 @@ If you want to use MongoDB to handle failed jobs, change the database in `config
With [Lumen](http://lumen.laravel.com), add the service provider in `bootstrap/app.php`. You must however ensure that you add the following **after** the `MongodbServiceProvider` registration.
0 commit comments