File tree 1 file changed +8
-8
lines changed 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -935,12 +935,8 @@ protected function mergeGroupAttributes(array $action)
935
935
*/
936
936
protected function mergeNamespaceGroup (array $ action )
937
937
{
938
- if (isset ($ this ->groupAttributes ['middleware ' ])) {
939
- if (isset ($ action ['middleware ' ])) {
940
- $ action ['middleware ' ] .= '| ' .$ this ->groupAttributes ['middleware ' ];
941
- } else {
942
- $ action ['middleware ' ] = $ this ->groupAttributes ['middleware ' ];
943
- }
938
+ if (isset ($ this ->groupAttributes ['namespace ' ]) && isset ($ action ['uses ' ])) {
939
+ $ action ['uses ' ] = $ this ->groupAttributes ['namespace ' ].'\\' .$ action ['uses ' ];
944
940
}
945
941
946
942
return $ action ;
@@ -954,8 +950,12 @@ protected function mergeNamespaceGroup(array $action)
954
950
*/
955
951
protected function mergeMiddlewareGroup ($ action )
956
952
{
957
- if (isset ($ this ->groupAttributes ['namespace ' ]) && isset ($ action ['uses ' ])) {
958
- $ action ['uses ' ] = $ this ->groupAttributes ['namespace ' ].'\\' .$ action ['uses ' ];
953
+ if (isset ($ this ->groupAttributes ['middleware ' ])) {
954
+ if (isset ($ action ['middleware ' ])) {
955
+ $ action ['middleware ' ] .= '| ' .$ this ->groupAttributes ['middleware ' ];
956
+ } else {
957
+ $ action ['middleware ' ] = $ this ->groupAttributes ['middleware ' ];
958
+ }
959
959
}
960
960
961
961
return $ action ;
You can’t perform that action at this time.
0 commit comments