Skip to content

Commit 032f3d0

Browse files
authored
Merge branch 'master' into master
2 parents 95551ca + 0bf3f03 commit 032f3d0

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/build-ci.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ${{matrix.os}}
1212
strategy:
1313
matrix:
14-
php: ['7.1', '7.2', '7.3', '7.4']
14+
php: ['7.2', '7.3', '7.4']
1515
os: ['ubuntu-latest']
1616
mongodb: ['3.6', '4.0', '4.2']
1717
services:
@@ -30,9 +30,16 @@ jobs:
3030
name: PHP v${{ matrix.php }} with Mongo v${{ matrix.mongodb }}
3131

3232
steps:
33-
- uses: actions/checkout@v1
33+
- uses: actions/checkout@v2
34+
- name: "Installing php"
35+
uses: shivammathur/setup-php@v2
36+
with:
37+
php-version: ${{ matrix.php }}
38+
extensions: curl,mbstring,xdebug
39+
coverage: xdebug
40+
tools: composer
3441
- name: Show PHP version
35-
run: php${{ matrix.php }} -v && composer -V
42+
run: php -v && composer -V
3643
- name: Show Docker version
3744
run: if [[ "$DEBUG" == "true" ]]; then docker version && env; fi
3845
env:

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,18 @@ class Book extends Model
232232
}
233233
```
234234

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+
235247
### Soft Deletes
236248

237249
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

Comments
 (0)