@@ -12,7 +12,7 @@ class CachedBuilder extends EloquentBuilder
1212
1313 public function avg ($ column )
1414 {
15- if (! $ this ->isCachable ) {
15+ if (! $ this ->isCachable () ) {
1616 return parent ::avg ($ column );
1717 }
1818
@@ -25,7 +25,7 @@ public function avg($column)
2525
2626 public function count ($ columns = ['* ' ])
2727 {
28- if (! $ this ->isCachable ) {
28+ if (! $ this ->isCachable () ) {
2929 return parent ::count ($ columns );
3030 }
3131
@@ -38,7 +38,7 @@ public function count($columns = ['*'])
3838
3939 public function cursor ()
4040 {
41- if (! $ this ->isCachable ) {
41+ if (! $ this ->isCachable () ) {
4242 return collect (parent ::cursor ());
4343 }
4444
@@ -62,7 +62,7 @@ public function delete()
6262 */
6363 public function find ($ id , $ columns = ['* ' ])
6464 {
65- if (! $ this ->isCachable ) {
65+ if (! $ this ->isCachable () ) {
6666 return parent ::find ($ id , $ columns );
6767 }
6868
@@ -75,7 +75,7 @@ public function find($id, $columns = ['*'])
7575
7676 public function first ($ columns = ['* ' ])
7777 {
78- if (! $ this ->isCachable ) {
78+ if (! $ this ->isCachable () ) {
7979 return parent ::first ($ columns );
8080 }
8181
@@ -88,7 +88,7 @@ public function first($columns = ['*'])
8888
8989 public function get ($ columns = ['* ' ])
9090 {
91- if (! $ this ->isCachable ) {
91+ if (! $ this ->isCachable () ) {
9292 return parent ::get ($ columns );
9393 }
9494
@@ -101,7 +101,7 @@ public function get($columns = ['*'])
101101
102102 public function max ($ column )
103103 {
104- if (! $ this ->isCachable ) {
104+ if (! $ this ->isCachable () ) {
105105 return parent ::max ($ column );
106106 }
107107
@@ -114,7 +114,7 @@ public function max($column)
114114
115115 public function min ($ column )
116116 {
117- if (! $ this ->isCachable ) {
117+ if (! $ this ->isCachable () ) {
118118 return parent ::min ($ column );
119119 }
120120
@@ -131,7 +131,7 @@ public function paginate(
131131 $ pageName = 'page ' ,
132132 $ page = null
133133 ) {
134- if (! $ this ->isCachable ) {
134+ if (! $ this ->isCachable () ) {
135135 return parent ::paginate ($ perPage , $ columns , $ pageName , $ page );
136136 }
137137
@@ -145,7 +145,7 @@ public function paginate(
145145
146146 public function pluck ($ column , $ key = null )
147147 {
148- if (! $ this ->isCachable ) {
148+ if (! $ this ->isCachable () ) {
149149 return parent ::pluck ($ column , $ key );
150150 }
151151
@@ -159,7 +159,7 @@ public function pluck($column, $key = null)
159159
160160 public function sum ($ column )
161161 {
162- if (! $ this ->isCachable ) {
162+ if (! $ this ->isCachable () ) {
163163 return parent ::sum ($ column );
164164 }
165165
@@ -172,7 +172,7 @@ public function sum($column)
172172
173173 public function value ($ column )
174174 {
175- if (! $ this ->isCachable ) {
175+ if (! $ this ->isCachable () ) {
176176 return parent ::value ($ column );
177177 }
178178
0 commit comments