Skip to content

Instantly share code, notes, and snippets.

@piotrbrzezina
Last active September 17, 2018 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piotrbrzezina/ec0f04b09420af6773822fa874f9d269 to your computer and use it in GitHub Desktop.
Save piotrbrzezina/ec0f04b09420af6773822fa874f9d269 to your computer and use it in GitHub Desktop.
Flashcard step 6 (filter)
<?php
// ...
use ApiPlatform\Core\Annotation\ApiFilter;
/**
* // ...
* @ApiFilter(
* SearchFilter::class,
* properties={
* "question": "partial",
* "answer": "partial"
* }
* )
*/
class Flashcard
{
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment