File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
- ## [ 0.3.1] - 10 Sep 2018
7
+ ## [ 0.3.1] - 7 Oct 2018
8
8
### Changed
9
9
- use of ` cache() ` helper method to ` app("cache") ` to allow for better Lumen compatibility. Thanks @nope7777 !
10
10
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
16
16
17
17
### Fixed
18
18
- use of custom pagination name.
19
+ - edge-case where tag creation failed.
19
20
20
21
## [ 0.3.0] - 10 Sep 2018
21
22
### Added
Original file line number Diff line number Diff line change @@ -79,9 +79,12 @@ protected function makeCacheKey(
79
79
protected function makeCacheTags () : array
80
80
{
81
81
$ eagerLoad = $ this ->eagerLoad ?? [];
82
- $ model = $ this ->model ?? $ this ;
83
- $ query = $ this ->query ?? app ('db ' )->query ();
84
-
82
+ $ model = $ this ->model instanceof Model
83
+ ? $ this ->model
84
+ : $ this ;
85
+ $ query = $ this ->query instanceof Builder
86
+ ? $ this ->query
87
+ : app ('db ' )->query ();
85
88
$ tags = (new CacheTags ($ eagerLoad , $ model , $ query ))
86
89
->make ();
87
90
You can’t perform that action at this time.
0 commit comments