| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class GalaxyController extends Controller |
||
| 15 | { |
||
| 16 | public function getGalaxies() |
||
| 17 | { |
||
| 18 | return GalaxyResource::collection( |
||
| 19 | Galaxy::with(['type', 'worlds'])->get() |
||
| 20 | // Cache::remember('galaxies', config('redis.cache_lives.galaxies', 60), function () { |
||
| 21 | // |
||
| 22 | // }) |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getGalaxy($galaxy_id) |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getTypes() |
||
| 42 | } |