Update song info.
public static updateInfo ( array $ids, array $data ) : array | ||
$ids | array | |
$data | array | The data array, with these supported fields: - title - artistName - albumName - lyrics All of these are optional, in which case the info will not be changed (except for lyrics, which will be emptied). |
Результат | array |
/** * Update songs info. * * @param SongUpdateRequest $request * * @return \Illuminate\Http\JsonResponse */ public function update(SongUpdateRequest $request) { return response()->json(Song::updateInfo($request->songs, $request->data)); }