Closed lixinqi closed 9 years ago
Look at the following code: $models = Product::select('id')->get(); foreach ($models as $model) { $model->save(); } After that, only id field is left in product document. In my point view, updateIndex should return true when no field is dirty
Shouldn't Carbon\Carbon be referenced as a fully qualified namespace, like \Carbon\Carbon? Otherwise, nice job!
Carbon\Carbon
\Carbon\Carbon
Look at the following code: $models = Product::select('id')->get(); foreach ($models as $model) { $model->save(); } After that, only id field is left in product document. In my point view, updateIndex should return true when no field is dirty