On the official documentation, an upsert function is documented here but is not yet working. I think it should be removed from documentation or explicitly mention that it is not yet implemented.
run DB::table("table name")->upsert([], [], []);
@hamzamogni the new version isn't yet tagged. It will be available as soon as its tagged. Also, the new version would be 8.10 so you'll have to update from 8.0 for you to be able to use it. The docs are for 8.x not 8.0.
Will be released on Tuesday.
Most helpful comment
Will be released on Tuesday.