updateInfo() public static method

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).
return array
Example #1
0
 /**
  * Update songs info.
  *
  * @param SongUpdateRequest $request
  *
  * @return \Illuminate\Http\JsonResponse
  */
 public function update(SongUpdateRequest $request)
 {
     return response()->json(Song::updateInfo($request->songs, $request->data));
 }