@@ 51-60 (lines=10) @@ | ||
48 | return $this; |
|
49 | } |
|
50 | ||
51 | public function getLinks(Model $model = null): array |
|
52 | { |
|
53 | $this->ensureUserDefinedMethodsExist(); |
|
54 | ||
55 | $methodsToInclude = empty($this->methods) |
|
56 | ? ['show', 'edit', 'update', 'destroy'] |
|
57 | : $this->methods; |
|
58 | ||
59 | return $this->resolveLinks($methodsToInclude, $model); |
|
60 | } |
|
61 | ||
62 | public function getCollectionLinks(): array |
|
63 | { |
|
@@ 62-71 (lines=10) @@ | ||
59 | return $this->resolveLinks($methodsToInclude, $model); |
|
60 | } |
|
61 | ||
62 | public function getCollectionLinks(): array |
|
63 | { |
|
64 | $this->ensureUserDefinedMethodsExist(); |
|
65 | ||
66 | $methodsToInclude = empty($this->methods) |
|
67 | ? ['index', 'store', 'create'] |
|
68 | : $this->methods; |
|
69 | ||
70 | return $this->resolveLinks($methodsToInclude); |
|
71 | } |
|
72 | ||
73 | public static function clearCache(): void |
|
74 | { |