From 252b114b5f79e27eec5d7b2d10c0c072dd9ac4b1 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 12 May 2016 17:23:51 -0700 Subject: [PATCH] Fixed case sensitive model for status labels --- app/Console/Commands/Purge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/Purge.php b/app/Console/Commands/Purge.php index 427ff5cd32..51c188b7c8 100644 --- a/app/Console/Commands/Purge.php +++ b/app/Console/Commands/Purge.php @@ -17,7 +17,7 @@ use \App\Models\User; use \App\Models\Supplier; use \App\Models\Manufacturer; use \App\Models\Depreciation; -use \App\Models\StatusLabel; +use \App\Models\Statuslabel; class Purge extends Command { @@ -158,7 +158,7 @@ class Purge extends Command $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.'); foreach ($status_labels as $status_label) { $this->info('- Status Label "'.$status_label->name.'" deleted.');