📜  laravel mongodb field delete (key delete) (column delete) drop - PHP Code Example

📅  最后修改于: 2022-03-11 14:54:41.034000             🧑  作者: Mango

代码示例1
$ppl = Employee::where('name', 'TrevorNoah')->first();
$ppl->drop('field1');
// or
$john->drop(['field1', 'field2']); // works with more