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(laravel): eloquent filters (search, date, equals, or) #6593

Merged
merged 5 commits into from
Sep 6, 2024

Conversation

soyuka
Copy link
Member

@soyuka soyuka commented Sep 6, 2024

Filters are from #6554

Added: :property placeholder fixes, schema generation (and openapi).
This introduces new filter interfaces.

#[QueryParameter(key: 'isbn', filter: PartialSearchFilter::class)]
#[QueryParameter(key: 'name', filter: PartialSearchFilter::class)]
#[QueryParameter(key: 'publicationDate', filter: DateFilter::class)]
#[QueryParameter(
    key: 'name2',
    filter: new OrFilter(new EqualsFilter()),
    property: 'name'
)]
#[QueryParameter(key: ':property', filter: PartialSearchFilter::class)]
#[QueryParameter(key: 'createdAt', filter: DateFilter::class)]
#[QueryParameter(key: 'order[:property]', filter: OrderFilter::class)]

@soyuka soyuka force-pushed the feat/laravel-filters branch from 02faa6a to e6651bc Compare September 6, 2024 11:56
@soyuka soyuka force-pushed the feat/laravel-filters branch from e6651bc to 656b975 Compare September 6, 2024 12:34
@soyuka soyuka merged commit c9f18d4 into api-platform:main Sep 6, 2024
57 of 59 checks passed
@soyuka soyuka deleted the feat/laravel-filters branch September 6, 2024 13:11
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.

1 participant