@@ -11,31 +11,31 @@ class Link extends Model {
11
11
12
12
public static function allCached ($ forceRefresh = false )
13
13
{
14
- if (!isset (static ::$ cache ['all ' ]) || $ forceRefresh ) {
15
- static ::$ cache ['all ' ] = Link::all ();
14
+ if (!isset (self ::$ cache ['all ' ]) || $ forceRefresh ) {
15
+ self ::$ cache ['all ' ] = Link::all ();
16
16
}
17
17
18
- return static ::$ cache ['all ' ];
18
+ return self ::$ cache ['all ' ];
19
19
}
20
20
21
21
public static function returnUrls ($ forceRefresh = false ) {
22
22
23
- if (!isset (static ::$ cache ['all_urls ' ]) || $ forceRefresh ) {
23
+ if (!isset (self ::$ cache ['all_urls ' ]) || $ forceRefresh ) {
24
24
$ configs = Link::allCached ($ forceRefresh );
25
- static ::$ cache ['all_urls ' ] = $ configs ->pluck ('url ' )->toArray ();
25
+ self ::$ cache ['all_urls ' ] = $ configs ->pluck ('url ' )->toArray ();
26
26
}
27
27
28
- return static ::$ cache ['all_urls ' ];
28
+ return self ::$ cache ['all_urls ' ];
29
29
}
30
30
31
31
public static function getMainUrls ($ forceRefresh = false ){
32
32
33
- if (!isset (static ::$ cache ['main_urls ' ]) || $ forceRefresh ) {
33
+ if (!isset (self ::$ cache ['main_urls ' ]) || $ forceRefresh ) {
34
34
$ configs = Link::where ('main ' , '= ' , true )->get (['url ' ]);
35
- static ::$ cache ['main_urls ' ] = $ configs ->pluck ('url ' )->toArray ();
35
+ self ::$ cache ['main_urls ' ] = $ configs ->pluck ('url ' )->toArray ();
36
36
}
37
37
38
- return static ::$ cache ['main_urls ' ];
38
+ return self ::$ cache ['main_urls ' ];
39
39
}
40
40
41
41
0 commit comments