Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
41 | public static function getWithTechnicalNameLike(string $technicalName): Collection |
||
42 | { |
||
43 | return Cache::rememberForever( |
||
44 | "article.getWithTechnicalNameLike.{$technicalName}", |
||
45 | function () use ($technicalName) { |
||
46 | return Article::where('technical_name', 'like', "{$technicalName}.%") |
||
47 | ->orderBy('order_column') |
||
48 | ->get(); |
||
49 | } |
||
50 | ); |
||
51 | } |
||
52 | } |
||
53 |