File tree 2 files changed +13
-13
lines changed
2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -25,17 +25,4 @@ public function newEloquentBuilder($query)
25
25
26
26
return new Builder ($ query );
27
27
}
28
-
29
- public static function all ($ columns = ['* ' ])
30
- {
31
- $ class = get_called_class ();
32
- $ instance = new $ class ;
33
- $ tags = [str_slug (get_called_class ())];
34
- $ key = $ instance ->makeCacheKey ();
35
-
36
- return $ instance ->cache ($ tags )
37
- ->rememberForever ($ key , function () use ($ columns ) {
38
- return parent ::all ($ columns );
39
- });
40
- }
41
28
}
Original file line number Diff line number Diff line change @@ -67,4 +67,17 @@ public static function bootCachable()
67
67
$ instance ->flushCache ();
68
68
});
69
69
}
70
+
71
+ public static function all ($ columns = ['* ' ])
72
+ {
73
+ $ class = get_called_class ();
74
+ $ instance = new $ class ;
75
+ $ tags = [str_slug (get_called_class ())];
76
+ $ key = $ instance ->makeCacheKey ();
77
+
78
+ return $ instance ->cache ($ tags )
79
+ ->rememberForever ($ key , function () use ($ columns ) {
80
+ return parent ::all ($ columns );
81
+ });
82
+ }
70
83
}
You can’t perform that action at this time.
0 commit comments