From eaa1cc39a97cbec8074b853cf39e0cff20cb9ff1 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Mon, 4 Jan 2016 15:24:25 -0800 Subject: [PATCH] Make it possible to rebuild deleted tracks, too. --- app/Console/Commands/RebuildTrack.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/RebuildTrack.php b/app/Console/Commands/RebuildTrack.php index 25ce13c6..136faf8d 100644 --- a/app/Console/Commands/RebuildTrack.php +++ b/app/Console/Commands/RebuildTrack.php @@ -63,7 +63,7 @@ class RebuildTrack extends Command public function handle() { /** @var Track $track */ - $track = Track::with('trackFiles')->find((int) $this->argument('trackId')); + $track = Track::with('trackFiles')->withTrashed()->find((int) $this->argument('trackId')); if($this->option('upload')) { foreach($track->trackFiles as $trackFile) {