From 4cffc56aef98d44fb5cb12ec5e5ffae7207b843c Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 29 Jan 2019 18:53:08 -0500 Subject: * Editing: Go back to same key you came from (Also show key in song name) --- laravel/app/Song.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'laravel/app/Song.php') diff --git a/laravel/app/Song.php b/laravel/app/Song.php index 58e2317..a71e997 100644 --- a/laravel/app/Song.php +++ b/laravel/app/Song.php @@ -13,7 +13,9 @@ class Song extends Model } public function getNameAttribute() { - return $this->title . ( $this->author ? " ($this->author)" : "" ); + return $this->title + . ( $this->author ? " ($this->author)" : "" ) + . ($this->plain_key ? " ($this->plain_key)" : ""); } public function getPlainKeyAttribute() { -- cgit 1.4.1