Total Complexity | 6 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | trait CheckLaravelVersion |
||
13 | { |
||
14 | public function atLeastLaravel5Dot7(): bool |
||
15 | { |
||
16 | return $this->atLeastLaravelVersion('5.7.0'); |
||
17 | } |
||
18 | |||
19 | public function atLeastLaravel5Dot8(): bool |
||
20 | { |
||
21 | return $this->atLeastLaravelVersion('5.8.0'); |
||
22 | } |
||
23 | |||
24 | public function atLeastLaravel6(): bool |
||
25 | { |
||
26 | return $this->atLeastLaravelVersion('6.0'); |
||
27 | } |
||
28 | |||
29 | public function atLeastLaravel7(): bool |
||
30 | { |
||
31 | return $this->atLeastLaravelVersion('7.0'); |
||
32 | } |
||
33 | |||
34 | public function atLeastLaravel8(): bool |
||
37 | } |
||
38 | |||
39 | private function atLeastLaravelVersion(string $version): bool |
||
40 | { |
||
42 | } |
||
43 | } |
||
44 |