|int $playlists */ class PlaylistFolderPlaylistDestroyRequest extends Request { /** @return array */ public function rules(): array { return [ 'playlists' => [ 'required', 'array', new AllPlaylistsBelongTo($this->user()), Rule::exists(Playlist::class, 'id'), ], ]; } }