user->playlist_folders); } public function store(PlaylistFolderStoreRequest $request) { return PlaylistFolderResource::make($this->service->createFolder($this->user, $request->name)); } public function update(PlaylistFolder $playlistFolder, PlaylistFolderUpdateRequest $request) { $this->authorize('own', $playlistFolder); return PlaylistFolderResource::make($this->service->renameFolder($playlistFolder, $request->name)); } public function destroy(PlaylistFolder $playlistFolder) { $this->authorize('own', $playlistFolder); $playlistFolder->delete(); return response()->noContent(); } }