Fixed case sensitive model for status labels

This commit is contained in:
snipe 2016-05-12 17:23:51 -07:00
parent 73327d31e3
commit 252b114b5f

View file

@ -17,7 +17,7 @@ use \App\Models\User;
use \App\Models\Supplier; use \App\Models\Supplier;
use \App\Models\Manufacturer; use \App\Models\Manufacturer;
use \App\Models\Depreciation; use \App\Models\Depreciation;
use \App\Models\StatusLabel; use \App\Models\Statuslabel;
class Purge extends Command class Purge extends Command
{ {
@ -158,7 +158,7 @@ class Purge extends Command
$manufacturer->forceDelete(); $manufacturer->forceDelete();
} }
$status_labels = StatusLabel::whereNotNull('deleted_at')->withTrashed()->get(); $status_labels = Statuslabel::whereNotNull('deleted_at')->withTrashed()->get();
$this->info($status_labels->count().' status labels purged.'); $this->info($status_labels->count().' status labels purged.');
foreach ($status_labels as $status_label) { foreach ($status_labels as $status_label) {
$this->info('- Status Label "'.$status_label->name.'" deleted.'); $this->info('- Status Label "'.$status_label->name.'" deleted.');