Backend for songs.zachdecook.com
- Fix old song view
| -rw-r--r-- | laravel/app/Http/Controllers/SongController.php | 2 | ||||
| -rw-r--r-- | laravel/public/robots.txt | 2 | ||||
| -rw-r--r-- | laravel/resources/views/playlist.blade.php | 2 |
3 files changed, 3 insertions, 3 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 ) diff --git a/laravel/public/robots.txt b/laravel/public/robots.txt index eb05362..1f53798 100644 --- a/laravel/public/robots.txt +++ b/laravel/public/robots.txt @@ -1,2 +1,2 @@ User-agent: * -Disallow: +Disallow: / diff --git a/laravel/resources/views/playlist.blade.php b/laravel/resources/views/playlist.blade.php index 7f6bed5..20e91f5 100644 --- a/laravel/resources/views/playlist.blade.php +++ b/laravel/resources/views/playlist.blade.php @@ -1,5 +1,5 @@ @extends('layouts.app') -@section('title', $playlist->name) +@section('title', "Contribute to the $playlist->name playlist") @section('content') |