From 24e1cca96002a4b017647fc031e44138762a9281 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 28 Dec 2018 02:58:14 +0000 Subject: - Fix old song view --- laravel/app/Http/Controllers/SongController.php | 2 +- laravel/public/robots.txt | 2 +- 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') -- cgit 1.4.1