diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2018-12-28 02:58:14 +0000 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2018-12-28 02:58:14 +0000 |
| commit | 24e1cca96002a4b017647fc031e44138762a9281 (patch) | |
| tree | b576b94a3f788f9b0489be28a9f1dcd6ebed1391 /laravel/app/Http/Controllers | |
| parent | 297437f0bcf2bb0fc190d3ce988eb9a9c57ada5c (diff) | |
| download | prosongsa-24e1cca96002a4b017647fc031e44138762a9281.tar.gz | |
- Fix old song view
Diffstat (limited to 'laravel/app/Http/Controllers')
| -rw-r--r-- | laravel/app/Http/Controllers/SongController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/laravel/app/Http/Controllers/SongController.php b/laravel/app/Http/Controllers/SongController.php index 4545896..adf6473 100644 --- a/laravel/app/Http/Controllers/SongController.php +++ b/laravel/app/Http/Controllers/SongController.php @@ -10,7 +10,7 @@ class SongController extends Controller { public function oldShow( $song ) { - $song = Song::where('number', $song ); + $song = Song::where('number', $song )->first(); return $this->show( $song ); } public function show( Song $song ) |
