Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support to custom guard in controller and resource #121

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

PellegrinoDurante
Copy link

In our company we are using PHPSA Controllers with a custom guard different from the default one.
This PR adds the ability to specify a custom guard to be used within a controller and in the resources created from it.

@Cadienvan
Copy link
Contributor

Hey @phpsa any chance of getting this one in? :)

@phpsa
Copy link
Owner

phpsa commented Oct 8, 2024

Hey @phpsa any chance of getting this one in? :)

Looking at this today.

@phpsa
Copy link
Owner

phpsa commented Oct 10, 2024

this needs to deal with collections aswell, currently only deals with the singluar resource, and not a resource collection

@Cadienvan
Copy link
Contributor

What do you mean? Both qualifiers (collection and resource) have been modified. Also, respondWithResource is used in collections as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants