Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Type
Enhancement, Tests
Description
singleUseCodes
filter toGetClaims
query and updated validation rules.HasSingleUseCodeScope
trait for handling single-use code scope.HasSingleUseCodeScope
trait inBeamClaim
model.singleUseCodes
filter inGetClaims
query.fix
script to composer scripts.singleUseCodes
argument to GraphQLGetClaims
query.Changes walkthrough 📝
1 files
mutation.php
Add description for `single_use_code` argument in mutation.
lang/en/mutation.php
single_use_code
argument inclaim_beam
mutation.5 files
GetClaimsQuery.php
Add `singleUseCodes` filter and update validation rules.
src/GraphQL/Queries/GetClaimsQuery.php
singleUseCodes
filter toGetClaims
query.codes
andsingleUseCodes
.singleUseCodes
.BeamClaim.php
Integrate `HasSingleUseCodeScope` trait in `BeamClaim` model.
src/Models/Laravel/BeamClaim.php
HasSingleUseCodeScope
trait toBeamClaim
model.HasSingleUseCodeScope.php
Create `HasSingleUseCodeScope` trait.
src/Models/Laravel/Traits/HasSingleUseCodeScope.php
HasSingleUseCodeScope
trait for handling single-use codescope.
CanClaim.php
Add validation for single-use beam claims.
src/Rules/CanClaim.php
set to single-use.
GetClaims.graphql
Add `singleUseCodes` argument to GraphQL query.
tests/Feature/GraphQL/Resources/GetClaims.graphql
singleUseCodes
argument toGetClaims
query.2 files
ClaimBeamTest.php
Add test for single-use beam claim validation.
tests/Feature/GraphQL/Mutations/ClaimBeamTest.php
GetClaimsTest.php
Add tests for `singleUseCodes` filter and validation.
tests/Feature/GraphQL/Queries/GetClaimsTest.php
singleUseCodes
filter inGetClaims
query.1 files
composer.json
Add `fix` script to composer.
composer.json
fix
script to composer scripts.