Skip to content

Commit 3fe84d0

Browse files
committed
Added support to use where in apiResource method
1 parent 71bfb1f commit 3fe84d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Routing/ResourceRegistrar.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ protected function getResourceAction($resource, $controller, $method, $options)
393393
$action['excluded_middleware'] = $options['excluded_middleware'];
394394
}
395395

396+
if (isset($options['where'])) {
397+
$action['where'] = $options['where'];
398+
}
399+
396400
return $action;
397401
}
398402

0 commit comments

Comments
 (0)