Skip to content
Discussion options

You must be logged in to vote

Thanks for your quick feedback, It works perfectly. Here is an example of my implementation

// Fetch implementation
  public function fetchPois(PoiListRequest $request)
  {

    // get all linked uuids from the request
    $forms = $request->input('form');
    $uuids = [];

    foreach ($forms as $form) {
      $formName = $form['name'];
      if ($formName === 'uuid') {
        $uuids[] = $form['value'];
      }
    }

    return $this->fetch([
      'model' => Poi::class, // required
      'query' => function ($model) use ($uuids) {
        return $model
          ->whereNotIn('uuid', $uuids);
      }
    ]);
  }

// ...

protected function setupUpdateOperation()
{
   // ...
       $this->

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pxpm
Comment options

pxpm May 23, 2023
Maintainer

Answer selected by pxpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants