tags, 'artist', ''); $song = $this->s3Service->createSongEntry( $request->bucket, $request->key, $artist, array_get($request->tags, 'album'), trim(array_get($request->tags, 'albumartist')), array_get($request->tags, 'cover'), trim(array_get($request->tags, 'title', '')), (int) array_get($request->tags, 'duration', 0), (int) array_get($request->tags, 'track'), (string) array_get($request->tags, 'lyrics', '') ); return response()->json($song); } public function remove(RemoveSongRequest $request) { try { $this->s3Service->deleteSongEntry($request->bucket, $request->key); } catch (SongPathNotFoundException) { abort(Response::HTTP_NOT_FOUND); } return response()->noContent(); } }