We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b384e89 commit 6c9c747Copy full SHA for 6c9c747
src/Commands/RefreshOrdersCommand.php
@@ -31,7 +31,7 @@ public function handle()
31
$reflectionModel = new ReflectionClass($this->argument('model'));
32
if (in_array("Eloquent\Orderer\Orderable", array_keys($reflectionModel->getTraits()))) {
33
$model = app($this->argument('model'));
34
- $model->refresh();
+ $model->orderer()->refresh();
35
$this->info(sprintf('Fixing up %s orders', class_basename($model)));
36
}
37
$this->info('Finished up refreshing the orders');
0 commit comments