Skip to content

Filter/Skip row(s) based on content? #123

Answered by tiagof
OvalMedia asked this question in Q&A
Discussion options

You must be logged in to vote

In

->handleRecordCreation(function($data){
    return Post::create($data);
})

Simply don't create the Post, just return a new instance without creating it in the DB:

->handleRecordCreation(function($data){
    return $data['field'] === "ok" ? Post::create($data) : new Post();
})

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@OvalMedia
Comment options

@tiagof
Comment options

Answer selected by OvalMedia
@OvalMedia
Comment options

@uqjohart
Comment options

@dennyvik
Comment options

@uqjohart
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants