Skip to content

Commit bc68fda

Browse files
update readme
1 parent be3354a commit bc68fda

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,19 @@ mean that the entire cache is cleared each time a model is created, saved,
4949
updated, or deleted.
5050

5151
For ease of maintenance, I would recommend adding a `BaseModel` model that
52-
extends `CachedModel`, from which all your other models are extended. If you
52+
uses `Cachable`, from which all your other models are extended. If you
5353
don't want to do that, simply extend your models directly from `CachedModel`.
5454

5555
Here's an example `BaseModel` class:
5656

5757
```php
5858
<?php namespace App;
5959

60-
use GeneaLabs\LaravelModelCaching\CachedModel;
60+
use GeneaLabs\LaravelModelCaching\Traits\Cachable;
6161

62-
abstract class BaseModel extends CachedModel
62+
abstract class BaseModel
6363
{
64+
use Cachable;
6465
//
6566
}
6667
```

0 commit comments

Comments
 (0)