diff options
| author | Zach DeCook <zachdecook@gmail.com> | 2018-12-27 22:04:32 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@gmail.com> | 2018-12-27 22:04:32 -0500 |
| commit | 131af78cbe9f6741d83482b9ce126d8ca820b235 (patch) | |
| tree | 0d8eaacd98b92437d46d98b8c8cf0b7fc8ceed1e /laravel/app/Http/Controllers | |
| parent | 24e1cca96002a4b017647fc031e44138762a9281 (diff) | |
| download | prosongsa-131af78cbe9f6741d83482b9ce126d8ca820b235.tar.gz | |
- Old show: Use redirect instead of showing page
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 adf6473..6689fba 100644 --- a/laravel/app/Http/Controllers/SongController.php +++ b/laravel/app/Http/Controllers/SongController.php @@ -11,7 +11,7 @@ class SongController extends Controller public function oldShow( $song ) { $song = Song::where('number', $song )->first(); - return $this->show( $song ); + return redirect()->route('song.show', ['song' => $song ] ); } public function show( Song $song ) { |
